[Mono-bugs] [Bug 694908] New: Can't deal with paint exception in OnThreadException - difference from .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 19 11:27:53 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=694908

https://bugzilla.novell.com/show_bug.cgi?id=694908#c0


           Summary: Can't deal with paint exception in OnThreadException -
                    difference from .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: eb1 at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


The Application.ThreadException event allows to handle exceptions that occur in
Windows Forms threads. If an exception is thrown while processing the paint
message of a control, with .NET the control will be replaced with a red cross.

On Mono the application silently quits without giving a chance to deal with the
exception in the ThreadException handler, even when using try/catch blocks.

The attached sample application demonstrates this behavior. After clicking the
button the paint method of the button will throw an exception. On Windows with
NET it will be replaced with a red cross and the ThreadExceptionDialog shown.

With Mono the application exits without displaying the ThreadExceptionDialog.

-- 
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