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