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

Zoltan Varga vargaz at gmail.com
Sun Aug 7 11:18:26 EDT 2005


                       Hi,

  This is called 'undeniable exception propagation'. See this for more info:

http://blogs.msdn.com/cbrumme/archive/2003/08/20/51504.aspx

            Zoltan

On 8/5/05, Vivek, Bharath Varma (IE10) <Vivek.Varma at honeywell.com> wrote:
> 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
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>



More information about the Mono-devel-list mailing list