[Mono-bugs] [Bug 77409][Nor] New - OpenFileDialog exception.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 30 15:11:10 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 kdaniels at usfamily.net.

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

--- shadow/77409	2006-01-30 15:11:10.000000000 -0500
+++ shadow/77409.tmp.675	2006-01-30 15:11:10.000000000 -0500
@@ -0,0 +1,87 @@
+Bug#: 77409
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Fedora Core 3
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Windows.Forms
+AssignedTo: peter at novonyx.com                            
+ReportedBy: kdaniels at usfamily.net               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: OpenFileDialog  exception.
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+OpenFileDialog ofd = new OpenFileDialog() causes an exception
+
+Steps to reproduce the problem:
+1. 
+Compile and execute the following program:
+
+using System;
+using System.Windows.Forms;
+namespace TestFD
+{
+	class Class1
+	{
+		[STAThread]
+		static void Main(string[] args)
+		{
+			OpenFileDialog ofd = new OpenFileDialog();
+			ofd.ShowDialog();
+		}
+	}
+}
+
+2. 
+3. 
+
+Actual Results:
+ mono test.exe
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
+Keyboard: United States keyboard layout (phantom key version)
+Gtk colorscheme read
+
+Unhandled Exception: System.TypeInitializationException: An exception was
+thrown by the type initializer for System.Windows.Forms.MimeIconEngine --->
+System.ArgumentException: The Path does not have a valid format
+in <0x002c3> System.IO.Directory:GetFileSystemEntries (System.String path,
+System.String pattern, FileAttributes mask, FileAttributes attrs)
+in <0x00011> System.IO.Directory:GetDirectories (System.String path,
+System.String pattern)
+in <0x0000f> System.IO.Directory:GetDirectories (System.String path)
+in <0x00027> System.Windows.Forms.GnomeHandler:CreateUIIcons ()
+in <0x000a3> System.Windows.Forms.GnomeHandler:Start ()
+in <0x0044a> System.Windows.Forms.MimeIconEngine:.cctor ()--- End of inner
+exception stack trace ---
+
+in <0x00000> <unknown method>
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.MWFFileView:.ctor ()
+in <0x002dd> System.Windows.Forms.FileDialog+FileDialogPanel:.ctor
+(System.Windows.Forms.FileDialog fileDialog)
+in (wrapper remoting-invoke-with-check) FileDialogPanel:.ctor
+(System.Windows.Forms.FileDialog)
+in <0x000a1> System.Windows.Forms.OpenFileDialog:.ctor ()
+in (wrapper remoting-invoke-with-check)
+System.Windows.Forms.OpenFileDialog:.ctor ()
+in <0x0001b> TestFD.Class1:Main (System.String[] args)
+
+Expected Results:
+OpenFileDialog displayed.
+
+How often does this happen? 
+Every time
+This used to work with Mono, and it does work with .Net
+
+Additional Information:
+
+Using mono from SVN. revision 56229.


More information about the mono-bugs mailing list