Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TRY...CATCH...FINALLY to reprocess some code
Message
From
08/09/2008 10:52:51
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
08/09/2008 08:49:03
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01345690
Message ID:
01345753
Views:
12
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform