[Mono-bugs] [Bug 446392] New: MenuStrip crashes when ALT key is pressed in a TextBox
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Wed Nov 19 01:39:25 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=446392
Summary: MenuStrip crashes when ALT key is pressed in a TextBox
Product: Mono: Class Libraries
Version: 2.0.x
Platform: Other
OS/Version: All
Status: NEW
Severity: Major
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: floseflose at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=253228)
--> (https://bugzilla.novell.com/attachment.cgi?id=253228)
Test program for MenuStrip Bug
Description of Problem:
Typing ALT to activate the menu doesn't work (tested in Mono 2.0.1 on
Linux/Windows)
MenuStrip even crashes when ALT key is typed in a TextBox and then type arrow
key left or right.
Steps to reproduce the problem:
1. create a windows form with a menustrip (with two items) and a textbox (see
attachment)
2. Run program
3. Click in the textbox and press the Alt Key twice!(on Linux it also crashes
when alt is only pressed once)
4. Press the right or left arrowkey
Actual Results:
mono crashes with an error:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at System.Windows.Forms.MenuTracker.ProcessKeys
(System.Windows.Forms.Message& msg, Keys keyData) [0x00000]
at System.Windows.Forms.Menu.ProcessCmdKey (System.Windows.Forms.Message&
msg, Keys keyData) [0x00000]
at System.Windows.Forms.Control.ProcessCmdKey (System.Windows.Forms.Message&
msg, Keys keyData) [0x00000]
at System.Windows.Forms.TextBoxBase.ProcessCmdKey
(System.Windows.Forms.Message& msg, 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 a1.b1.Main () [0x00000]
Expected Results:
do nothing because Alt was pressed twice
How often does this happen?
always
Additional Information:
--
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