[Mono-bugs] [Bug 80773][Nor] New - Form.ShowDialog changes Owner when it should not
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Fri Feb 9 14:48:35 EST 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 georgegiolfan at yahoo.com.
http://bugzilla.ximian.com/show_bug.cgi?id=80773
--- shadow/80773 2007-02-09 14:48:35.000000000 -0500
+++ shadow/80773.tmp.2169 2007-02-09 14:48:35.000000000 -0500
@@ -0,0 +1,49 @@
+Bug#: 80773
+Product: Mono: Class Libraries
+Version: 1.2
+OS: other
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: toshok at ximian.com
+ReportedBy: georgegiolfan at yahoo.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Form.ShowDialog changes Owner when it should not
+
+Description of Problem:
+After a call to ShowDialog that throws and exception, the value returned
+by Owner is wrong.
+
+Steps to reproduce the problem:
+Compile and run the following program.
+using System;
+using System.Diagnostics;
+using System.Windows.Forms;
+class TestForm : Form {
+ static void Main() {
+ Application.Run(new TestForm());
+ }
+ public TestForm() {
+ Text = "Parent";
+ }
+ protected override void OnLoad(EventArgs e) {
+ base.OnLoad(e);
+ Form f = new Form();
+ f.Text = "Dialog";
+ try {
+ f.ShowDialog(f);
+ } catch {
+ }
+ Debug.Assert(f.Owner == null);
+ }
+}
+
+Additional Information:
+Maybe owner (in Form.ShowDialog(IWin32Window)) should be set after any
+checks are perform.
More information about the mono-bugs
mailing list