I have a simple class which does all this for you. When your program initialises, you do this: If (Not System.Diagnostics.Debugger.IsAttached) Then ExceptionManager.Instance().AppName = "YourAppNameHere" End If
The class then pops up a dialog when an exception occurs, showing the stack-trace, error message, etc, and on closing that dialog, a new instance of the program can optionally be started. You don't have to have the Debugger.IsAttached
test, but it means that the exception handler won't pop up if you are debugging in the IDE. Let me know if it sounds like what you need.
S
SimonCampbell
@SimonCampbell
Posts
-
Global Error Handler