Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errorhandling
Message
De
15/01/2015 13:12:41
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
15/01/2015 11:35:59
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01613303
Message ID:
01613689
Vues:
50
>>>When running in the VFP IDE for debugging, I disable the ON ERROR error handler, so that any error occurring outside of the TRY CATCH will enable you to debug directly on the spot of the error.
>>
>>Reading this thread, I got an idea. The error thrown up indeed loses some of the info which was available in the context... and from that I mostly miss the stack at the time when error happened. Now this may be a way out...
>>
aStackInfo(aa)
>>loExc.AddProperty("ast[1]", "")
>>DIMENSION loExc.ast(alen(aa,1), alen(aa,2))
>>acopy(aa, loExc.ast)
>>throw loExc
>
>That would not resolve it as the error might have been raised way deeper than the TRY CATCH, catching the error. There is no way to get the actual stackinfo at the line the error occurred once the CATCH fires.

Of course, but it would give at least the location (stack-wise) of that inner t-c, which is otherwise lost on Throw.

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