[Mono-bugs] [Bug 501639] New: child form sometimes does not appear on ShowDialog (about 30%)
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Thu May 7 04:15:36 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=501639
Summary: child form sometimes does not appear on ShowDialog
(about 30%)
Classification: Mono
Product: Mono: Class Libraries
Version: SVN
Platform: i686
OS/Version: openSUSE 11.1
Status: NEW
Severity: Critical
Priority: P5 - None
Component: Windows.Forms
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: tsai at pinnacle.com.tw
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=290598)
--> (http://bugzilla.novell.com/attachment.cgi?id=290598)
Bug_ShowDialog vs2005 solution source code
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; zh-CN; rv:1.9.0.10)
Gecko/2009042316 Firefox/3.0.10
1. parent form inherit from Form
private void button1_Click(object sender, EventArgs e)
{
ChildFm form = new ChildFm();
form.Owner = this;
form.Text = form.ClientSize.Width + ":" + form.ClientSize.Height +
form.StartPosition.ToString() +
form.Location.X + ":" + form.Location.Y +
form.ShowInTaskbar + ":" + form.TopMost;
//form.SetDesktopLocation(123, 123);
form.ShowDialog();
form.Dispose();
form = null;
}
2.bgForm inherit from Form
public bgForm()
{
InitializeComponent();
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
}
3. child form inherit from bgForm
public ChildFm()
{
InitializeComponent();
this.ControlBox = false;
this.FormBorderStyle = FormBorderStyle.None;
this.Location = new Point(200, 200);
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
}
Reproducible: Sometimes
Steps to Reproduce:
1.open openSUSE -> GNOME Terminal
2.cd /home/test/Desktop
3.mono Bug_ShowDialog.exe (mono -V svn version 2.5 r132544 2009/04/24)
4.click ChildForm button (sometimes ChildForm does not appear, program CRASH)
5.click ChildForm close button
Actual Results:
sometimes ChildForm does not appear (30%), program CRASH
muse press Ctrl+C to close program in GNOME Terminal
Expected Results:
ChildForm must appear always
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list