[Mono-dev] About your changes to type initialization
martin at ximian.com
Tue Mar 9 11:57:16 EST 2010
On 03/08/2010 08:24 PM, Rodrigo Kumpera wrote:
> Routing Thread::Abort() around is not the behavior I can observe on
> MS. Do you have
> any test or documentation that shows this behavior? Even if this looks
> like the wrong
> thing, we should follow MS behavior as compatibility is one of our
> major goal.
> What we could do, thou, is to have this behavior as something our
> debuggers can use.
I attached a test case which blocks on MS, but doesn't in Mono.
I tried this both with and without the Visual Studio debugger, and the
`a.Abort ()' always
blocks for 10 seconds till the second thread signaled the wait handle.
The main thread's
call to Test.Foo() then succeeds.
When run with Mono, the `a.Abort ()' immediately aborts the thread and
`new Test ()' throws the TypeInitializationException.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Mono-devel-list