[Mono-dev] SPAM-LOW: Re: Unhandled Exceptions in Mono

Charlie Poole charlie at nunit.com
Sat Aug 11 21:52:44 EDT 2007


Hi Miguel,

> > Mono didn't introduce the breaking change in the 2.0 profile. 
> > Unhandled exceptions can be taken care of by an 
> > UnhandledExceptionHandler without use of the 
> <legacyUnhandledExceptionPolicy> element.
> > 
> > Is this by design? Or is it a compatibility bug?
> 
> We discussed this a few years ago, but I do not remember what we did
> about it.   Please file a bug report about

Done. I provided a test program that shows how it works in each environment.


The new behavior makes sense for the average program: if an exception isn't
handled, it should be terminated. For programs that need to do something
before it terminates, the new behavior is OK as well. It is a problem for a
program like NUnit that wants to report an error and then continue to run
other tests. It would be a problem for any program that used the
UnhandledExceptionHandler to turn
off a facility (like an addin) and continue to run in a degraded mode.

Anyway, it's documented as a difference. If it's not changed, maybe it
should go into a short list of "Things we deliberately do differently."

Charlie






More information about the Mono-devel-list mailing list