[Mono-bugs] [Bug 79866][Nor] New - CommonDialog: Calling ShowDialog a second time results in a System.InvalidOperationException

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Nov 8 05:48:15 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 alex.olk at googlemail.com.

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

--- shadow/79866	2006-11-08 05:48:15.000000000 -0500
+++ shadow/79866.tmp.3168	2006-11-08 05:48:15.000000000 -0500
@@ -0,0 +1,95 @@
+Bug#: 79866
+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: CommonDialog: Calling ShowDialog a second time results in a System.InvalidOperationException
+
+If you have a CommonDialog like ColorDialog and create an instance in a
+ctor, for example, it is not possible to show that dialog two times.
+
+It crashes with a System.InvalidOperationException.
+
+Creating a new instance before calling ShowDialog has no problems.
+
+To reproduce run the colordialog sample. Open the colordialog, close and
+open it a second time.
+
+
+Unhandled Exception: System.InvalidOperationException: The form is already
+displayed as a modal dialog.
+  at System.Windows.Forms.Form.ShowDialog (IWin32Window ownerWin32)
+[0x00106] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:1272
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.Form:ShowDialog (System.Windows.Forms.IWin32Window)
+  at System.Windows.Forms.CommonDialog.ShowDialog (IWin32Window ownerWin32)
+[0x00012] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:110
+
+  at System.Windows.Forms.CommonDialog.ShowDialog () [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/CommonDialog.cs:102
+
+  at (wrapper remoting-invoke-with-check)
+System.Windows.Forms.CommonDialog:ShowDialog ()
+  at testwin.MainForm.OnClick (System.Object sender, System.EventArgs e)
+[0x00000] 
+  at (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_object_EventArgs (object,System.EventArgs)
+  at System.Windows.Forms.Control.OnClick (System.EventArgs e) [0x0000b] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4318
+
+  at System.Windows.Forms.Button.OnClick (System.EventArgs e) [0x0002a] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:95
+
+  at System.Windows.Forms.ButtonBase.OnMouseUp
+(System.Windows.Forms.MouseEventArgs mevent) [0x000a1] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:469
+
+  at System.Windows.Forms.Button.OnMouseUp
+(System.Windows.Forms.MouseEventArgs e) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:99
+
+  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m)
+[0x00313] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:4028
+
+  at System.Windows.Forms.ButtonBase.WndProc (System.Windows.Forms.Message&
+m) [0x00055] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ButtonBase.cs:524
+
+  at System.Windows.Forms.Button.WndProc (System.Windows.Forms.Message& m)
+[0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Button.cs:112
+
+  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:181
+
+  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:2851
+
+  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:428
+
+  at System.Windows.Forms.Application.DispatchMessage
+(System.Windows.Forms.MSG& msg) [0x00000] in
+/home/alex/develop/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:447


More information about the mono-bugs mailing list