Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The best code for Error trapping?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00949897
Message ID:
00950077
Views:
13
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform