Tracy,

I believe every version of code I have looked at uses the routine listed
here.  Can you be more specific about where the sleep or inkey should be
added?

Thanks - Joe
 
On Friday, February 18, 2011  1:02 PM, Tracy Pearson wrote:
>
>Date: Fri, 18 Feb 2011 13:02:17 -0500
>From: Tracy Pearson
>To: [email protected]
>cc:
>Subject: RE: Getting  a complete file list from a removable disc into VFP
>
>Grigore Dolghin wrote on 2011-02-18:
>
>>    hProcess = str2long( Substr( cProcessInfo, 1, 4))
>>    Do While .T.
>>        * Use timeout of TIMEOUT_INTERVAL msec so the display
>>        * will be updated. Otherwise, the VFP window never repaints until
>>        * the loop is exited.
>>        If WaitForSingleObject( hProcess, WAIT_INTERVAL) != WAIT_TIMEOUT
>>            Exit
>>        Else
>>            DoEvents
>>        Endif
>>    Enddo
>
>Grigore,
>
>I thought you might like to check on this. The above Do While loop you have
>will peg a processor and slow down the process you are waiting for. Adding a
>call to the Sleep(1) API or using an INKEY(.1) will keep this from being
>resource hungry.
>
>   DECLARE Integer Sleep IN WIN32API Integer
>
>Tracy Pearson
>PowerChurch Software
>
>
>
>
[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