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

Atsushi Eno atsushi at ximian.com
Thu Aug 4 13:46:55 EDT 2005


Hi,

Well, there is ResetAbort() which can stop the ThreadAbortException
only from inside the same thread (AFAIK). Other than that yes it is
not possible to stop this error propagation.

Atsushi Eno

David Waite wrote:
> ThreadAbort is thrown as result of the thread being aborted. You
> cannot unabort the thread, just do cleanup before it finishes. So when
> you catch the ThreadAbort, it is rethrown automatically to go to the
> next higher cleanup routine.
> 
> -David Waite
> 
> On 8/4/05, Vivek, Bharath Varma (IE10) <Vivek.Varma at honeywell.com> wrote:
> 
>>Hi,
>>
>>I have a question regarding ThreadAbortException.
>>Why is the thread abort exception rethrown at the end of a catch clause?
>>Why is ThreadAbortException's behavior designed to be this way?
>>
>>Thanks in advance
>>-Vivek
>>
>>_______________________________________________
>>Mono-devel-list mailing list
>>Mono-devel-list at lists.ximian.com
>>http://lists.ximian.com/mailman/listinfo/mono-devel-list
>>
> 
> _______________________________________________
> 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