J
John Richardson
Quick question about the UnhandledException event and associated Handler.
I just implemented this handler for the first time, and am surprised that it
this event is being raised for an exception that I have handled.
I have the following:
private void Load()
{
try
{
Load(true);
}
catch (ThreadAbortException ex)
{
Debug.WriteLine("Thread Abort Exception!!!");
/* Empty Catch should eat the exception? */
}
catch (Exception ex)
{
throw;
}
}
but each time I get a ThreadAbortException, my UnhandledException handler is
being fired from this method. Why and what do I have to do to prevent this
behaviour?
I just implemented this handler for the first time, and am surprised that it
this event is being raised for an exception that I have handled.
I have the following:
private void Load()
{
try
{
Load(true);
}
catch (ThreadAbortException ex)
{
Debug.WriteLine("Thread Abort Exception!!!");
/* Empty Catch should eat the exception? */
}
catch (Exception ex)
{
throw;
}
}
but each time I get a ThreadAbortException, my UnhandledException handler is
being fired from this method. Why and what do I have to do to prevent this
behaviour?