[Mono-bugs] [Bug 82353][Nor] New - ObjectDisposedException closing form in Load event
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Aug 7 11:07:09 EDT 2007
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=82353
--- shadow/82353 2007-08-07 11:07:09.000000000 -0400
+++ shadow/82353.tmp.9730 2007-08-07 11:07:09.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 82353
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: ObjectDisposedException closing form in Load event
+
+Closing a form in a Load eventhandler, results in an
+ObjectDisposedException:
+
+
+Unhandled Exception: System.ObjectDisposedException: The object was used
+after being disposed.
+ at System.Windows.Forms.Control.CreateControl () [0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:CreateControl ()
+ at System.Windows.Forms.Control.CreateControl () [0x00000]
+ at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00000]
+ at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x00000]
+ at System.Windows.Forms.Control.set_Visible (Boolean value) [0x00000]
+ at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Control:set_Visible (bool)
+ 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 MainForm.Main () [0x00000]
+
+Note: this only affect Mono/Linux.
+
+To reproduce, compile and run the attached code snippet on Linux.
More information about the mono-bugs
mailing list