Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Are there any error(s) which cannot be handled?
Message
De
07/05/1998 15:42:15
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00096940
Message ID:
00097834
Vues:
27
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform