Hi
Is it possible to catch all exceptions in _one_ place?
I want to have a error-report system, that catches _all_ exceptions (including the exceptions that have been specially handled).
I´ve only come up with:
[STAThread]
static void Main() {
try {
Application.Run(new Main());
} catch(Exception ex) {
// Write error to database or something.
}
}
But this terminates the program, which I dont want to.
Anyone know if there exists a "built-in" error-report handling system or something similiar?
Im using VS2003.
Thanks
Is it possible to catch all exceptions in _one_ place?
I want to have a error-report system, that catches _all_ exceptions (including the exceptions that have been specially handled).
I´ve only come up with:
[STAThread]
static void Main() {
try {
Application.Run(new Main());
} catch(Exception ex) {
// Write error to database or something.
}
}
But this terminates the program, which I dont want to.
Anyone know if there exists a "built-in" error-report handling system or something similiar?
Im using VS2003.
Thanks