[Mono-bugs] [Bug 76936][Nor] New - Openfiledialog will cause an
executable to crash.
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Dec 7 09:59:03 EST 2005
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 jeromydean at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=76936
--- shadow/76936 2005-12-07 09:59:03.000000000 -0500
+++ shadow/76936.tmp.21265 2005-12-07 09:59:03.000000000 -0500
@@ -0,0 +1,123 @@
+Bug#: 76936
+Product: Mono: Class Libraries
+Version: 1.1
+OS: Windows XP
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: jordi at ximian.com
+ReportedBy: jeromydean at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Openfiledialog will cause an executable to crash.
+
+Description of Problem:
+The open file dialog under mono causes the program to use all of the cpu.
+I guess this was fixed once before according to the following link:
+http://lists.ximian.com/pipermail/mono-winforms-list/2005-May/001648.html
+But I am using mono 1.1.10 and the last assemblies from the mono daily
+build package and I am still receiving this error.
+
+
+Steps to reproduce the problem:
+1. Compile the following code:
+
+
+using System;
+using System.Drawing;
+using System.Windows.Forms;
+
+namespace asdfasdfasdf
+{
+ /// <summary>
+ /// Description of MainForm.
+ /// </summary>
+ public class MainForm : System.Windows.Forms.Form
+ {
+ private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.OpenFileDialog ofd;
+ public MainForm()
+ {
+ //
+ // The InitializeComponent() call is required for Windows Forms designer
+support.
+ //
+ InitializeComponent();
+
+ //
+ // TODO: Add constructor code after the InitializeComponent() call.
+ //
+ }
+
+ [STAThread]
+ public static void Main(string[] args)
+ {
+ Application.Run(new MainForm());
+ }
+
+ #region Windows Forms Designer generated code
+ /// <summary>
+ /// This method is required for Windows Forms designer support.
+ /// Do not change the method contents inside the source code editor. The
+Forms designer might
+ /// not be able to load this method if it was changed manually.
+ /// </summary>
+ private void InitializeComponent() {
+ this.ofd = new System.Windows.Forms.OpenFileDialog();
+ this.button1 = new System.Windows.Forms.Button();
+ this.SuspendLayout();
+ //
+ // button1
+ //
+ this.button1.Location = new System.Drawing.Point(64, 96);
+ this.button1.Name = "button1";
+ this.button1.TabIndex = 0;
+ this.button1.Text = "button1";
+ this.button1.Click += new System.EventHandler(this.Button1Click);
+ //
+ // MainForm
+ //
+ this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
+ this.ClientSize = new System.Drawing.Size(292, 266);
+ this.Controls.Add(this.button1);
+ this.Name = "MainForm";
+ this.Text = "MainForm";
+ this.Load += new System.EventHandler(this.MainFormLoad);
+ this.ResumeLayout(false);
+ }
+ #endregion
+ void MainFormLoad(object sender, System.EventArgs e)
+ {
+ }
+
+ void Button1Click(object sender, System.EventArgs e)
+ {
+ ofd.ShowDialog();
+ }
+
+ }
+}
+
+
+2. And then execute under mono.
+
+Actual Results:
+The resulting program will use all of the cpu and will need to be killed by
+task manager.
+
+
+Expected Results:
+The program should open with a button allowing the user to open the open
+file dialog.
+
+How often does this happen?
+Every time.
+
+
+Additional Information:
+Refer to description.
More information about the mono-bugs
mailing list