Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TRY...CATCH...FINALLY to reprocess some code
Message
De
08/09/2008 10:52:51
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
08/09/2008 08:49:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01345690
Message ID:
01345753
Vues:
13
>With TRY...CATCH...FINALLY inside?

If you're trying to catch it while doing something it shouldn't, sure. Also make sure you log whatever you can so you'd know what's going on. Timing related bugs are very nasty and hard to catch anyway, so any clue which may help trace the killer is welcome.

If it's timing, then you may try to insert a DoEvents, an API call to sleep() or some other technique to delay execution.

>>>If I have a block of a troubling code and I want to see if a timing of its execution is an issue can I use TRY...CATCH...FINALLY to run it and then if it fails simply run it again for a couple of times whether the same code would eventually work?
>>>
>>>Thanks
>>
>>No, but you can do a Do-While loop.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform