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 <[email protected]> To: [email protected] 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??
_______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
