usb driver problem
Thomas McGrath III
mcgrath3 at mac.com
Fri Jan 21 18:14:16 EST 2011
Jan,
I think you are right. I originally was checking both the result and it and somewhere along the way just focused on it. So I will append the in 2 secs and check the result.
Thanks for the heads up on this.
Let you know what happens.
-- Tom McGrath III
http://lazyriver.on-rev.com
3mcgrath at comcast.net
On Jan 21, 2011, at 9:05 AM, Jan Schenkel wrote:
> --- On Thu, 1/20/11, Thomas McGrath III <mcgrath3 at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list