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 _______________________________________________ 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/001601cbcf95$fb6247f0$f226d7d0$@com ** 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.

