Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The best code for Error trapping?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00949897
Message ID:
00950077
Vues:
15
>VFP 7 SP 1
>
>Right now when an error occurs in my app. I add it to a table with the following information : ERROR(), MESSAGE(), message([1])
>
>What other information could or should I add to that table?
>
>What would you guys suggest as the best error trapping function?

Denis,

I capture not only the callstack, line number, and message, but the version of the program, the Windows version, and the user name as well.

My programs run locally, but the error table is on a network drive. The loader program checks the network for a newer version. That's why I get the program version. If the file wasn't properly copied to fix a known problem, this information helps me contact the user and tell them how to fix it.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform