[Mono-bugs] [Bug 342358] New: MenuStrip: NullReferenceException in RefreshItems
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Nov 16 13:47:08 EST 2007
https://bugzilla.novell.com/show_bug.cgi?id=342358
Summary: MenuStrip: NullReferenceException in RefreshItems
Product: Mono: Class Libraries
Version: 1.2.6
Platform: Other
OS/Version: Windows XP
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at ximian.com
ReportedBy: gert.driesen at pandora.be
QAContact: mono-bugs at ximian.com
Found By: ---
Running the code below results in the following exception:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at System.Windows.Forms.MenuStrip.RefreshMdiItems () [0x00000]
at System.Windows.Forms.MenuStrip.set_MdiWindowListItem
(System.Windows.Forms.
ToolStripMenuItem value) [0x00000]
at (wrapper remoting-invoke-with-check)
System.Windows.Forms.MenuStrip:set_Mdi
WindowListItem (System.Windows.Forms.ToolStripMenuItem)
at Program.Main () [0x00000]
Code:
using System.Windows.Forms;
class Program
{
static void Main ()
{
Form f = new Form ();
MenuStrip ms = new MenuStrip ();
f.MainMenuStrip = ms;
f.Controls.Add (ms);
ms.MdiWindowListItem = new ToolStripMenuItem ("Window");
}
}
--
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