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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +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. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
