[Mono-list] mono swallows threadpool exceptions

Steve Lessard s_lessard at yahoo.com
Thu Jul 22 11:17:03 EDT 2010

There is a fairly simple workaround. Basically instead of putting the raw Action 
delegate on the thread pool you wrap it in another Action delegate. (Let's call 
it the "guardian" delegate.) The guardian delegate is put on the thread pool. 
When executed the guardian delegate calls the raw Action delegate from inside a 
try/catch block.  With this workaround you can write the guardian delegate to do 
whatever you want when it catches any kind of exception.  Does 
Environment.FailFast work in Mono?

From: Daniel Hughes <trampster at gmail.com>
To: mono-list at lists.ximian.com
Sent: Wed, July 21, 2010 3:50:35 AM
Subject: Re: [Mono-list] mono swallows threadpool exceptions

And I found the bug.

Bug 491191

Which is over a year old.

This one is not in an obscure part of the framework like my serial
port bug so it should be fixed quickly??

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100722/afafc05c/attachment.html 

More information about the Mono-list mailing list