[Mono-bugs] [Bug 372845] New: MenuItem not removed from menu when Disposed

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Mar 20 20:25:33 EDT 2008


           Summary: MenuItem not removed from menu when Disposed
           Product: Mono: Class Libraries
           Version: 1.9.0
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: alex.conway at linea-research.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: Third Party Developer/Partner

Created an attachment (id=203273)
 --> (https://bugzilla.novell.com/attachment.cgi?id=203273)
Code to reproduce the bug

calling Dispose() on a MenuItem doesn't remove it from the menu

compile the attatched file thus:
mcs -r:System.Windows.Forms,System.Drawing Form1.cs

selecting the Menu Item "Dispose" will pop up a MessageBox

pressing the button marked "Dispose" calls Dispose() on that MenuItem

running on .Net, the MenuItem disappears leaving just a separator

running on Mono (Windows and Linux) the MenuItem remains and still pops up the

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