Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exception C0000005 on wait window command
Message
De
27/11/2001 09:16:59
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00586253
Message ID:
00586258
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform