[Mono-bugs] [Bug 77705][Nor] New - strange Form behavior if
EnableVisualStyles() is called
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Mar 4 17:18:03 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 llang at email.cz.
http://bugzilla.ximian.com/show_bug.cgi?id=77705
--- shadow/77705 2006-03-04 17:18:03.000000000 -0500
+++ shadow/77705.tmp.5207 2006-03-04 17:18:03.000000000 -0500
@@ -0,0 +1,69 @@
+Bug#: 77705
+Product: Mono: Class Libraries
+Version: 1.1
+OS: other
+OS Details: SUSE 10
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com
+ReportedBy: llang at email.cz
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: strange Form behavior if EnableVisualStyles() is called
+
+/*
+ * Following program is compiled and run in Suse10 & mono-1.1.13.4
+ *
+ * Compilation: mcs MyForm.cs -reference:System.Windows.Forms
+ * Run: mono MyForm.exe
+ *
+ * Expected result:
+ * - program write "START" and create window
+ * - window is closed by user
+ * - program write DISPOSE
+ * - program write FINISH
+ *
+ * Current result:
+ * - program write "START" and create window
+ * - window is closed by user
+ * - program sometimes wait a long time (if I doubleclick to terminal
+program continue) - DISPOSE is always missed
+ * - program write FINISH
+ *
+ */
+
+
+// FILE-begin: MyForm.cs
+
+using System;
+using System.Windows.Forms;
+
+namespace Azg.Tests
+{
+ public class MyForm : Form
+ {
+ protected override void Dispose(bool disposing)
+ {
+ Console.WriteLine("DISPOSE");
+ base.Dispose(disposing);
+ }
+
+ static void Main()
+ {
+ Console.WriteLine("START");
+
+ Application.EnableVisualStyles(); // here is the BUG, if this
+line is missed, everything works ok
+ Application.Run(new MyForm());
+
+ Console.WriteLine("FINISH");
+ }
+ }
+}
+
+// FILE-end: MyForm.cs
More information about the mono-bugs
mailing list