[Mono-devel-list] Re: ThreadAbortException - Why is it rethrown?

Vivek, Bharath Varma (IE10) Vivek.Varma at honeywell.com
Fri Aug 5 04:08:56 EDT 2005


Thanks for your responses Atsushi & David.

I'm still wondering as to why the exception is rethrown and thus propagated
up the method call stack (assuming I did not call ResetAbort) even after it
is handled by a catch block. 

I'm not questioning this behavior, just trying to understand why it is so.

One guess I'm making is that this behavior of ThreadAbortException is
because we would like to give an opportunity to methods higher in the call
stack an opportunity to cleanup any unmanaged resources they may be holding.

Do you agree that this is the reason the ThreadAbortException is re-thrown
after a catch block handles the exception?

-Vivek



More information about the Mono-devel-list mailing list