[Mono-devel-list] Problem with ThreadAbortException handling

Matthias Sessler sessler at in.tum.de
Sun Mar 9 15:47:45 EST 2003


i am currently trying to make a program i wrote with windows run with 
mono/linux. While trying to make it run I had a problem with the 
ThreadAbortException. The Microsoft documentation states that, if a 
ThreadAbortException is thrown, all finally clauses are executed and if 
done, the thread will exit. This works fine with mono.
The problem begins, when during the execution of the finally clauses an 
other exception is thrown. The MS CLR throws the new exception and my 
application catches it, the execution goes on, and everything is fine.
When this happens with mono, a ThreadAbortException occurs instead of 
the new exception. Somehow this prevents the thread from stopping 
correctly (Join method does not return).

I don't know if this is a bug, thats why i did not fill in a bug report.

Could somebody please check if this is a bug of the mono exception 
handler or if this is the way it should work.

Matthias Sessler

More information about the Mono-devel-list mailing list