Menu

Bug in createString function when creating a custom console

Anonymous
2016-04-22
2016-04-22
  • Anonymous

    Anonymous - 2016-04-22

    I use "function createString(data, timeStamp, type, isLog)" to create a cutsom console. The problem is, that the function seems to be called three times when a tcp package is displayed.

    How to reproduce:
    1. Start two instances of ScripCommunicator
    2. Configure one as TCP Server on e.g. port 26000
    3. Configure the second one as TCP client connecting to 127.0.0.1:26000
    4. Create a custom console with the following code:
    function createString(data, timeStamp, type, isLog)
    {
    var resultString = "A";
    return resultString;
    }
    5. Send a single value from the server instance to the client instance.
    6. "AAA" will appear in the console

    What i would expect: The function is only called once per packet. Which would mean that only one "A" is printed.

    Is use version 4.08

    Regards
    Simon

     
  • Anonymous

    Anonymous - 2016-04-22

    Arg. I just tested with 4.09 - the issue seems to be already fixed.

    Sorry!

     
  • Stefan Zieker

    Stefan Zieker - 2016-04-22

    Hi Simon,

    no problem :-). And thx for reporting me the possible bug.

    Best regards,
    Stefan

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.