[Mono-bugs] [Bug 77283][Wis] New - ShowDialog hangs on certain return value

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 16 20:08: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 don at edvalson.net.


--- shadow/77283	2006-01-16 20:08:15.000000000 -0500
+++ shadow/77283.tmp.16112	2006-01-16 20:08:15.000000000 -0500
@@ -0,0 +1,52 @@
+Bug#: 77283
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: Tested on Win32 and OSX X11
+Status: NEW   
+Priority: Wishlist
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: don at edvalson.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: ShowDialog hangs on certain return value
+Please fill in this template when reporting a bug, unless you know what 
+you are doing.
+Description of Problem:
+Form.ShowDialog hangs if the Dialog returns DialogResult.None in it's 
+DialogResult member. Since this member defaults to None, if the dialog 
+box never fills in this value, the ShowDialog hangs
+Steps to reproduce the problem:
+1. Create a Dialog (form) that does not set DialogResult.
+2. Show it using ShowDialog()
+Actual Results:
+app hangs, control does not return to owning form.
+Expected Results:
+Dialog should close, app keeps running.
+How often does this happen? 
+Additional Information:
+There is code in Form.cs in DialogResult_set that does the following:
+if (is_modal && (dialog_result != DialogResult.None)) {
+    end_modal = true;
+This is incorrect. A dialog box should Close when Close() is called 
+regardless of the value of DialogResult.

More information about the mono-bugs mailing list