[Mono-bugs] [Bug 491191] Unhandled Exceptions thrown in Threads seem to be ignored. .NET difference

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jul 21 06:42:14 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=491191

http://bugzilla.novell.com/show_bug.cgi?id=491191#c2


Daniel Hughes <daniel.hughes at tait.co.nz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P5 - None                   |P1 - Urgent
                 CC|                            |daniel.hughes at tait.co.nz

--- Comment #2 from Daniel Hughes <daniel.hughes at tait.co.nz> 2010-07-21 10:42:13 UTC ---
I am to having this same problem with a program I am trying to port to mono. 

public static void Main (string[] args)
{
    Action action = () =>
    {
        throw new Exception("this should Kill the process but doesn't");
    };

    ThreadPool.QueueUserWorkItem(_ => action());
    while(true)
    {
        Thread.Sleep(1000);
        Console.WriteLine("wrongly still running");
    }
}

Mono should not be swallowing exceptions like this.

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list