[Mono-bugs] [Bug 419222] Different finally behaviour compared to MS

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 28 03:13:44 EDT 2008


User awunwpa7 at yahoo.com.ph added comment

--- Comment #4 from Steve Odbc <awunwpa7 at yahoo.com.ph>  2008-08-28 01:13:43 MDT ---
The following might give an idea (of my understanding) what the MS framework
does if an exception is thrown by the user interface thread while the
Application.ThreadException handler is set:

public void Application::Run()
   while ( no exit message found )
      get next message

         process message
      catch ( exception )
         if ( Application.ThreadException handler was set )
            invoke Application.ThreadException handler

            ...and then go on...
            regardless of the
                AppDomain.CurrentDomain.UnhandledException handler:

            raise a fatal exception that crashes the entire application

Just don't ask me how the framework gets the correct sender parameter for the
Application.ThreadException handler.

Configure bugmail: https://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