Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exception C0000005 on wait window command
Message
From
27/11/2001 09:16:59
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00586253
Message ID:
00586258
Views:
12
Lawrence,
In addition to Hilmar's reply, if you need a timeout in VFP, it's more efficient to use the API call Sleep():
DECLARE Sleep IN WIN32API INTEGER nMillisecs

DO WHILE < Whatever >
  Sleep(200) && timeout of 200 millisecs
  *-- processing
ENDO
>Hi all,
>
>I've got an installed application recently upgraded to VFP7 that has kicked out the following error twice:
>
>"fatal error - exception code C0000005"
>
>When I look at the line of the "called from" routine, I find the innocuous line: WAIT WINDOW 'Working on record: '+str(lnCount) TIMEOUT.2
>
>This line was inserted to slow down a loop that was batch processing some records. The whole thing appears to work 99% of the time.
>
>Any ideas what could cause this error intermittently on such a simple line of code?
>
>TIA,
>
>Larry
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform