[Mono-bugs] [Bug 338511] New: Menu: ContextMenu crashes with NRE if no parent form

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 1 17:28:29 EDT 2007


https://bugzilla.novell.com/show_bug.cgi?id=338511#c325969

           Summary: Menu: ContextMenu crashes with NRE if no parent form
           Product: Mono: Class Libraries
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at ximian.com
        ReportedBy: jpobst at novell.com
         QAContact: mono-bugs at ximian.com
          Found By: ---


Created an attachment (id=181720)
 --> (https://bugzilla.novell.com/attachment.cgi?id=181720)
Test Program

Created from bug #325969.

When a TextBox is hosted in a ToolStripDropDown, and the user right clicks it,
it attempts to show the default TextBox context menu.  However, the Menu code
relies on having a Form to set the ActiveTracker.  The TextBox does not have a
parent Form, so a NRE is thrown.

Repro:
- Run program
- Click dropdown arrow
- Right click text box


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