0
Reply

UnhandledExceptionEventHandler Issues

Glenn

Glenn

Nov 20 2007 4:05 PM
3.9k
Ok what i am trying to do is make a error reporting system for the application i am building. What i have done is
in the Main() function, i have added

AppDomain currentDomain = AppDomain.CurrentDomain;
            currentDomain.UnhandledException += new UnhandledExceptionEventHandler(currentDomain_UnhandledException);

Then i made the
static void currentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs args)

Now when i went to test to make sure it work, it did what it was suppose when i went to debug it Via Visual Studio, but then when i installed it to test it; it did not catch any errors.

What could i have done wrong?