[Mono-list] mono swallows threadpool exceptions
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.
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...
More information about the Mono-list