[Mono-bugs] [Bug 79814][Nor] New - NRE in UpDownBase.Dispose(bool)

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Nov 2 18:13:32 EST 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 monkey at jpobst.com.


--- shadow/79814	2006-11-02 18:13:32.000000000 -0500
+++ shadow/79814.tmp.21224	2006-11-02 18:13:32.000000000 -0500
@@ -0,0 +1,83 @@
+Bug#: 79814
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com                            
+ReportedBy: monkey at jpobst.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: NRE in UpDownBase.Dispose(bool)
+Description of Problem:
+If UpDownBase's Dispose is called, it crashes with an NRE.
+Steps to reproduce the problem:
+1. Run attached sample.
+2. Click the button on the form with only a button.
+Actual Results:
+Expected Results:
+Second form disappears.
+Additional Information:
+Unhandled Exception: System.NullReferenceException: Object reference not
+set to an instance of an object
+  at System.Windows.Forms.UpDownBase.Dispose (Boolean disposing) [0x00000] 
+  at System.ComponentModel.Component.Dispose () [0x00000] 
+  at (wrapper remoting-invoke-with-check)
+System.ComponentModel.Component:Dispose ()
+  at System.Windows.Forms.Control.Dispose (Boolean disposing) [0x00000] 
+  at System.Windows.Forms.ContainerControl.Dispose (Boolean disposing)
+  at System.Windows.Forms.Form.Dispose (Boolean disposing) [0x00000] 
+  at System.ComponentModel.Component.Dispose () [0x00000] 
+  at (wrapper remoting-invoke-with-check)
+System.ComponentModel.Component:Dispose ()
+  at MonoTest32.Form1.b_Click (System.Object sender, System.EventArgs e)
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x00000] 
+  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x00000] 
+  at System.Windows.Forms.ButtonBase.OnMouseUp
+(System.Windows.Forms.MouseEventArgs mevent) [0x00000] 
+  at System.Windows.Forms.Button.OnMouseUp
+(System.Windows.Forms.MouseEventArgs e) [0x00000] 
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message m)
+  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message
+m) [0x00000] 
+  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message m)
+  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 (wrapper native-to-managed) System.Windows.Forms.NativeWindow:WndProc
+  at <0x00000> <unknown method>
+  at (wrapper managed-to-native)
+  at System.Windows.Forms.XplatUIWin32.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.Form
+mainForm) [0x00000] 
+  at MonoTest32.Form1.Main () [0x00000] 
+Offending line is UpDownBase.cs : 608
+  txtView.Dispose();

More information about the mono-bugs mailing list