[Mono-bugs] [Bug 494639] New: ContextMenuStrip/ToolStripMenuItem crashes when pressing ESC.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Apr 14 07:44:09 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=494639


           Summary: ContextMenuStrip/ToolStripMenuItem crashes when
                    pressing ESC.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86
        OS/Version: Windows Vista
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Windows.Forms
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: albin at sunnanbo.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=285555)
 --> (http://bugzilla.novell.com/attachment.cgi?id=285555)
Minimal case to reproduce the problem

Description of Problem:
When opening an ContextMenuStrip with a ToolStripMenuItem and then pressing ESC
the runtime throws an unhandled exception.

Steps to reproduce the problem:
1. Start the attached application. A context menu is shown.
2. Press ESC on the keyboard: The application crashes.


Actual Results:
An unhandled exception is thrown.
In the example code the following exception is shown in a message box.

---------------------------

---------------------------
System.NullReferenceException: Object reference not set to an instance of an
object
  at System.Windows.Forms.ToolStripDropDown.ProcessArrowKey (Keys keyData)
[0x00000] 
  at System.Windows.Forms.ToolStrip.ProcessDialogKey (Keys keyData) [0x00000] 
  at System.Windows.Forms.ToolStripDropDown.ProcessDialogKey (Keys keyData)
[0x00000] 
  at System.Windows.Forms.Control.InternalPreProcessMessage
(System.Windows.Forms.Message& msg) [0x00000] 
  at System.Windows.Forms.Control.PreProcessMessage
(System.Windows.Forms.Message& msg) [0x00000] 
  at System.Windows.Forms.Control.PreProcessControlMessageInternal
(System.Windows.Forms.Message& msg) [0x00000] 
  at (wrapper remoting-invoke-with-check)
System.Windows.Forms.Control:PreProcessControlMessageInternal
(System.Windows.Forms.Message&)
  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run
(System.Windows.Forms.ApplicationContext context) [0x00000] 
  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm)
[0x00000] 
  at MonoContextMenuBug.CrashMonoForm.Main () [0x00000] 
---------------------------
OK   
---------------------------


Expected Results:
The context menu should close, nothing else.

How often does this happen? 
Always

Additional Information:
This minimal case is reproduced on Mono 2.4 on Windows Vista with the binary
compiled with Visual Studio 2008 SP1.
Our real application has crashed on older versions of Mono on both Windows and
Linux platforms.

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