[Mono-bugs] [Bug 79373][Nor] New - PropertyGrid: NRE when clicking on property BackgroundImage

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Sep 11 18:18:33 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by alex.olk at googlemail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79373

--- shadow/79373	2006-09-11 18:18:33.000000000 -0400
+++ shadow/79373.tmp.4594	2006-09-11 18:18:33.000000000 -0400
@@ -0,0 +1,89 @@
+Bug#: 79373
+Product: Mono: Class Libraries
+Version: 1.0
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: alex.olk at googlemail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: PropertyGrid: NRE when clicking on property BackgroundImage
+
+When I click on the BackgroundImage property in a PropertyGrid the app
+crashes with a NRE (here as example ControlInspector):
+
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at System.Drawing.ImageConverter.ConvertTo (ITypeDescriptorContext
+context, System.Globalization.CultureInfo culture, System.Object val,
+System.Type destType) [0x00037] in
+/home/alex/develop/mcs/class/System.Drawing/System.Drawing/ImageConverter.cs:85
+
+  at System.ComponentModel.TypeConverter.ConvertToString (System.Object
+value) [0x00000] in
+/home/alex/develop/mcs/class/System/System.ComponentModel/TypeConverter.cs:142 
+  at
+System.Windows.Forms.PropertyGridInternal.PropertyGridView.HandleSelectedGridItemChanged
+(System.Object sender,
+System.Windows.Forms.SelectedGridItemChangedEventArgs e) [0x0003e] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs:612
+
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_SelectedGridItemChangedEventArgs
+(object,System.Windows.Forms.SelectedGridItemChangedEventArgs)
+  at System.Windows.Forms.PropertyGrid.OnSelectedGridItemChanged
+(System.Windows.Forms.SelectedGridItemChangedEventArgs e) [0x0000b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs:737
+
+  at System.Windows.Forms.PropertyGrid.set_SelectedGridItem
+(System.Windows.Forms.GridItem value) [0x000cc] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGrid.cs:472
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.PropertyGrid:set_SelectedGridItem
+(System.Windows.Forms.GridItem)
+  at System.Windows.Forms.PropertyGridInternal.PropertyGridView.OnMouseDown
+(System.Windows.Forms.MouseEventArgs e) [0x000d8] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/PropertyGridView.cs:205
+
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
+[0x00331] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3994
+
+  at System.Windows.Forms.ScrollableControl.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ScrollableControl.cs:592
+
+  at System.Windows.Forms.Control+ControlNativeWindow.WndProc
+(System.Windows.Forms.Message& m) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:162
+
+  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg,
+IntPtr wParam, IntPtr lParam) [0x0006b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/NativeWindow.cs:159
+
+  at System.Windows.Forms.XplatUIX11.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:2718
+
+  at System.Windows.Forms.XplatUI.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:430
+
+  at System.Windows.Forms.Application.RunLoop (Boolean Modal,
+System.Windows.Forms.ApplicationContext context) [0x0023c] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:523
+
+  at System.Windows.Forms.Application.Run (System.Windows.Forms.Form
+mainForm) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:417
+
+  at ControlInspector.Startup.Main () [0x00000] in
+/home/alex/develop/wf-apps/ControlInspector/ControlInspector-Port/Startup.cs:11


More information about the mono-bugs mailing list