Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Are there any error(s) which cannot be handled?
Message
From
07/05/1998 15:42:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00096940
Message ID:
00097834
Views:
26
>Thirdly you error handler always returns a value, to what? Who do you think is going to receive the value returned by your error handler and what is going to be done with the value?
>
>Oh yes, the one other place where the default VFP error handler will be called is when there is an error in your error handler.

I've had a situation in FPD2.6 where an indexing routine was called from OpenIt() function's error handler (when it reported bad index and some other errors), then the indexer had an error handler of its own, which fired if the table was corrupt. It never fired - the error handler called the indexer again... though not indefinitely (because I watched it in the debugger, and broke its neck).

I've found a fair and neat workaround (setting a variable to the error code in the error handler, and later checking for it after the USE statement (when error handler already exited), so the indexer didn't get called from the error handler, but directly instead), but I just wander if it will behave differently in VFP. Any experience on this, anyone?

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform