[Mono-bugs] [Bug 76191][Nor] Changed - OpenFileDialog.ShowDialog() leak

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Sep 27 14:25:35 EDT 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 peter at novonyx.com.

http://bugzilla.ximian.com/show_bug.cgi?id=76191

--- shadow/76191	2005-09-27 05:15:22.000000000 -0400
+++ shadow/76191.tmp.16408	2005-09-27 14:25:35.000000000 -0400
@@ -4,13 +4,13 @@
 OS: Windows XP
 OS Details: 
 Status: NEW   
 Resolution: 
 Severity: Unknown
 Priority: Normal
-Component: Windows.Forms
+Component: CORLIB
 AssignedTo: peter at novonyx.com                            
 ReportedBy: kornelpal at hotmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
@@ -34,6 +34,36 @@
 I was unable to figure out the problem because dialog is shown without 
 the leak when I build and use MWF on .NET Framework.
 
 ------- Additional Comments From kornelpal at hotmail.com  2005-09-27 05:15 -------
 Could someone look at this please as this bug simply prevents 
 OpenFileDialog and SaveFileDialog being displayed.
+
+------- Additional Comments From peter at novonyx.com  2005-09-27 14:25 -------
+After some debugging, it seems that the problem is not 
+System.Windows.Forms, but System.IO. The following code will produce 
+the same hang. Reassigning to corlib. 
+
+using System;
+using System.Collections;
+using System.IO;
+
+class OpenFileDialogBug {
+   static void Main() {
+      DirectoryInfo di = new DirectoryInfo( 
+Environment.CurrentDirectory );
+
+      Stack dirStack = new Stack( );
+
+      dirStack.Push( di );
+
+      while ( di.Parent != null ) {
+         di = di.Parent;
+         dirStack.Push( di );
+      }
+
+      while ( dirStack.Count != 0 ) {
+         DirectoryInfo dii = (DirectoryInfo)dirStack.Pop( );
+         Console.WriteLine("Item {0} {1}", dii.Name, dii.FullName);
+      }
+   }
+}


More information about the mono-bugs mailing list