--- On Thu, 1/20/11, Thomas McGrath III <mcgra...@mac.com> wrote:
> Actually, as long as data is coming
> from the Arduino the app works. The data comes in and fills
> the field. But after the data stops being sent the system
> hangs. Until I push the button on the Arduino to send more
> data in which case the beach ball goes away and the new data
> gets received again.
> 
> It's like as long as data keeps everything is fine. I can
> even close the port in the middle of getting data but If it
> gets to the end of the current stream the system hangs and I
> can't even close the port. I put code in to close the port
> after data stops and that is working I think but the system
> still hangs like it's waiting for more.
> 
> 
> -- Tom McGrath III
> 

Your 'read' is blocking the rest of the application. Try appending 'in 2 
seconds" to the end of each 'read' statement, and check the result to see if it 
is 'time out' before processing the context of the special local variable 'it'.

I shot myself in the foot with that during my experiment of running a java 
helper app for JmDNS.

HTH,

Jan Schenkel.
=====
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La 
Rochefoucauld)



      

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to