https://bugzilla.novell.com/show_bug.cgi?id=358342
User [EMAIL PROTECTED] added comment https://bugzilla.novell.com/show_bug.cgi?id=358342#c333668 Summary: [Regression] Menu: NullReferenceException on X11 Product: Mono: Class Libraries Version: SVN Platform: All OS/Version: Ubuntu Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] QAContact: [email protected] Found By: --- My repro for bug #333668 (see gert/interactive/bug333668 in SVN) now results in an NRE on startup: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object at System.Windows.Forms.ThemeWin32Classic.CalcItemSize (System.Drawing.Graphics dc, System.Windows.Forms.MenuItem item, Int32 y, Int32 x, Boolean menuBar) [0x0007c] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2963 at System.Windows.Forms.ThemeWin32Classic.CalcMenuBarSize (System.Drawing.Graphics dc, System.Windows.Forms.Menu menu, Int32 width) [0x00028] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ThemeWin32Classic.cs:2994 at System.Windows.Forms.Hwnd.GetBorders (System.Windows.Forms.CreateParams cp, System.Windows.Forms.Menu menu) [0x00024] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs:345 at System.Windows.Forms.Hwnd.GetWindowRectangle (System.Windows.Forms.CreateParams cp, System.Windows.Forms.Menu menu, Rectangle client_rect) [0x00000] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Hwnd.cs:260 at System.Windows.Forms.XplatUIX11.CalculateWindowRect (System.Drawing.Rectangle& ClientRect, System.Windows.Forms.CreateParams cp, System.Windows.Forms.Menu menu, System.Drawing.Rectangle& WindowRect) [0x00000] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2410 at System.Windows.Forms.XplatUI.CalculateWindowRect (System.Drawing.Rectangle& ClientRect, System.Windows.Forms.CreateParams cp, System.Windows.Forms.Menu menu, System.Drawing.Rectangle& WindowRect) [0x00000] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:449 at System.Windows.Forms.Form.SetClientSizeCore (Int32 x, Int32 y) [0x000e1] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2367 at System.Windows.Forms.Form.set_Menu (System.Windows.Forms.MainMenu value) [0x0006b] in /home/gert/mono/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:973 at MainForm..ctor () [0x00000] at (wrapper remoting-invoke-with-check) MainForm:.ctor () at MainForm.Main () [0x00000] -- 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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
