[Mono-bugs] [Bug 359830] New: [Regression] NRE when setting the DockStyle type in PropertyGrid
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Fri Feb 8 01:14:25 EST 2008
https://bugzilla.novell.com/show_bug.cgi?id=359830
Summary: [Regression] NRE when setting the DockStyle type in
PropertyGrid
Product: Mono: Class Libraries
Version: 1.9.0
Platform: i586
OS/Version: SLED 10
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: twiest at novell.com
QAContact: mono-bugs at lists.ximian.com
Found By: Component Test
Description of Problem:
If you set the FooDockStyle in PropertyGrid, it throws a
NullReferenceException.
This happens in Mono 1.9.0p2, but not in Mono 1.9.0p1+, so this is a
regression.
Steps to reproduce the problem:
1. Run the attached binary test case
2. Change FooDockStyle to a value
3. Notice the crash with the NRE
Actual Results:
Unhandled Exception: System.NullReferenceException: Object reference not set to
an instance of an object
at System.Windows.Forms.Control.get_ShowFocusCues () [0x00000]
at System.Windows.Forms.ThemeWin32Classic.DrawCheckBox
(System.Drawing.Graphics g, System.Windows.Forms.CheckBox cb, Rectangle
glyphArea, Rectangle textBounds, Rectangle imageBounds, Rectangle
clipRectangle) [0x00000]
at System.Windows.Forms.CheckBox.Draw (System.Windows.Forms.PaintEventArgs
pe) [0x00000]
at System.Windows.Forms.ButtonBase.OnPaint
(System.Windows.Forms.PaintEventArgs pevent) [0x00000]
at System.Windows.Forms.Control.WmPaint (System.Windows.Forms.Message& m)
[0x00000]
at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
[0x00000]
at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message& m)
[0x00000]
at System.Windows.Forms.Control+ControlWindowTarget.OnMessage
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.Control+ControlNativeWindow.WndProc
(System.Windows.Forms.Message& m) [0x00000]
at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr
wParam, IntPtr lParam) [0x00000]
at System.Windows.Forms.XplatUIX11.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000]
at System.Windows.Forms.XplatUI.DispatchMessage (System.Windows.Forms.MSG&
msg) [0x00000]
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 PropGridObj.Main () [0x00000]
Expected Results:
It should just set the property in the grid.
How often does this happen?
Every time.
--
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