Jack,

The problem was a tight loop without a DoEvents as pointed out by Dave 
Crozier.

My code does clear the "done" when it sets up the next command.  I did 
not include the code in my post because I thought the debug and wait 
window execution working okay would give enough info to help someone 
catch what I was missing.

Thanks - Joe

On Tuesday, September 18, 2007  3:03 PM, Jack Skelley wrote:
>
>Date: Tue, 18 Sep 2007 15:03:53 -0400
>From: Jack Skelley
>To: [EMAIL PROTECTED]
>Subject: Re: Killing time while waiting for  a timer event
>
>Joe:
>I think when your write "done" to the property that is is not being
>refreshed. Since that isn't happening the program hangs in a loop
>because there is never a change.
>What would happen if you issued a thisform.refresh() after you write "done"?
>Just an idea...
>Regards,
>
>Jack Skelley
>
>Joe Yoder wrote:
>> I have a simple program where I send a command to a device and setup a timer 
>> to write "DONE" to a form property when 100 milliseconds have elapsed. The 
>> program then sits in a loop waiting until the the form property changes to 
>> "DONE" before proceeding to process the results.
>>
>> When I run the code the program hangs in the loop permanently. When I step 
>> through with the debugger everything seems to work properly.  When I put a 
>> wait window inside the wait loop, the program exits the loop properly.
>>
>> There is obviously something I don't understand.  Can someone help?
>>
>> TIA - Joe Yoder
>>
>>
>> --- StripMime Report -- processed MIME parts ---
>> multipart/alternative
>>   text/plain (text body -- kept)
>>   text/html
>> ---
>>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to