Page 1 of 1

"Read from file COM..." doesn't work very well on LC 7.0

Posted: Fri Jan 16, 2015 11:38 pm
by Monox18
Hello,

I've been working in getting and sending data from serial port COMn:

I'm using a code developed by Sarah Reichelt. I can't put the link, google "Sarah Reichelt liveCode" and go to "troz" if you want to see the file

It works pretty well on LiveCode 6.5 as you can see in the screenshot.
LiveCode Screenshot 2.png
I'm using Free Serial Port Terminal as a COM simulation tool and using Virtual Serial Ports Emulator to create 2 Virtual COM's and connect them,

The problem is it doesn't work so well on LiveCode 7.0. It crashes on the line "Read from file..." I've tried changing the Until condition to CR, LF, CRLF, EOF, and so on without results. Sure it sometimes send and recieve data but sooner or later it will always crash. But on 6.5 it runs perfectly. Any help or workaround here to make it work on 7.0? Thank you!

EDIT: I forgot to mention that CR constant is suposed to be numToChar(CR)=13 and not 10. It should be fixed.

Regards,

Juan.