question

Robin Brunner avatar image
2 Likes"
Robin Brunner asked Jacob Gillespie commented

FlexSim Socket Communication Error (Example by Logan Gold)

Hello Community,


I tried and tested a lot to get @Logan Gold 's old Socket Example working. I know it's build up with Version 7.4 and I'm using Version 17.1.4, but I thought that would be no big deal.

So I can get the connection between the two FlexSim Instances running (Server and Client). Otherwise the FlexSim Server Instance would be countinuing freezing. But the problem now is that I can't send/receive information between the instances. I tried to debug a lot with Console Printouts and after reading the error messages I found out that the "serverreceive(...)" command is not returning a string. It's a double with "0" in it. In the Command Help is defined that it must be a string executed by FlexScript (and the Script Command Console is only working with FlexScript). So why do I don't get a string with the "Hello World!" message? Maybe someone can test it on his system.

The error message is as in the picture:


Regards Robin

FlexSim 17.1.4
socketserverclientcommunication
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·
1 Like 1 ·

1 Answer

Jacob Gillespie avatar image
3 Likes"
Jacob Gillespie answered Jacob Gillespie commented

It looks like this function doesn't return a string anymore since 17.0 when we switched to compiled flexscript.

This is a bug. I'll add it to the dev list.

· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Jacob Gillespie avatar image Jacob Gillespie ♦ commented ·

I just fixed this. It will be fixed in FlexSim 17.0.8, 17.1.5, and 17.2.0

1 Like 1 ·