OHM,
In addition to the others comments.
Depending on the type of application you are creating, .NET has three
different global exception handlers.
For ASP.NET look at:
System.Web.HttpApplication.Error event
Normally placed in your Global.asax file.
For console applications look at:
System.AppDomain.UnhandledException event
Use AddHandler in your Sub Main.
For Windows Forms look at:
System.Windows.Forms.Application.ThreadException event
Use AddHandler in your Sub Main.
It can be beneficial to combine the above global handlers in your app, as
well as wrap your Sub Main in a try catch itself.
There is an article in the June 2004 MSDN Magazine that shows how to
implement the global exception handling in .NET that explains why & when you
use multiple of the above handlers...
http://msdn.microsoft.com/msdnmag/is...6/default.aspx
Unfortunately the article is not on-line yet.
Hope this helps
Jay
"OHM" <Me@NoWhere.Com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Hi everyone,
I have a problem with error handling and wondered if anyone has managed to
implement a global exception handling model.
Is it possible to ensure that you see all exceptions before it becomes an
unhandled exception.
This is opposale to putting Try Catches around every statement
Regards - OHM