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

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
Monox18
Posts: 50
Joined: Tue Nov 25, 2014 9:48 pm

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

Post by Monox18 » Fri Jan 16, 2015 11:38 pm

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.

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”