[Mono-dev] About your changes to type initialization
Martin Baulig
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.
Hi Rodrigo,
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
the subsequent
`new Test ()' throws the TypeInitializationException.
Martin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Program.cs
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20100309/cfec8e6d/attachment.pl
More information about the Mono-devel-list
mailing list