[Mono-bugs] [Bug 664695] New: [PATCH] Calling Dispose on ToolStrip emit events. Doesn't on .NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Jan 14 17:01:22 EST 2011



           Summary: [PATCH] Calling Dispose on ToolStrip emit events.
                    Doesn't on .NET
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.8.x
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: tom_hindle at sil.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---

Created an attachment (id=408483)
 --> (http://bugzilla.novell.com/attachment.cgi?id=408483)
Test case showing events are emitted from ToolStrip while disposing.

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/532.5
(KHTML, like Gecko) Chrome/ Safari/532.5

Events must be disposed before Items are removed in ToolStrip Dispose. (or
event handler can do things like adding items)

See attached test case.

I suspect lots of controls have this issue, may be worth writing lots of unit
tests, and fixing all these issues in one go. If I get some time I will attempt
to do this.

Reproducible: Always

Steps to Reproduce:
1. Compile and run test case.

Actual Results:  

Expected Results:  
Should not display anything.

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