[Mono-bugs] [Bug 77216][Maj] New - 1.1.13 Error FileInfo using Directory.Root

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Jan 11 19:07:54 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 bill.seddon at lyquidity.com.

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

--- shadow/77216	2006-01-11 19:07:54.000000000 -0500
+++ shadow/77216.tmp.20826	2006-01-11 19:07:54.000000000 -0500
@@ -0,0 +1,68 @@
+Bug#: 77216
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: SP2
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: CORLIB
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: bill.seddon at lyquidity.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: 1.1.13 Error FileInfo using Directory.Root
+
+Installed Windows version of 1.1.13 today and encountered a problem that 
+is caused by a call to FileInfo.Directory.Root
+
+The error message is shown below and is followed by a simple program to 
+reproduce the error:
+
+------------------------------------------------------------------------
+
+Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 
+14:35:24]
+
+Unhandled Exception: System.IndexOutOfRangeException: Array index is out 
+of range.
+in <0x0007c> System.IO.Path:SameRoot (System.String root, System.String
+path)
+in <0x00202> System.IO.Path:CanonicalizePath (System.String path) in 
+<0x0024b> System.IO.Path:InsecureGetFullPath (System.String path) in 
+<0x0000f> System.IO.Path:GetFullPath (System.String path) in <0x00031> 
+System.IO.DirectoryInfo:.ctor (System.String path) in (wrapper remoting-
+invoke-with-check) System.IO.DirectoryInfo:.ctor
+(string)
+in <0x00032> System.IO.DirectoryInfo:get_Root () in (wrapper remoting-
+invoke-with-check) System.IO.DirectoryInfo:get_Root
+()
+in <0x00080> Test:Main (System.String[] args)
+
+------------------------------------------------------------------------
+
+Heres a trivial to reproduce the problem:
+
+using System;
+using System.IO;
+using System.Windows.Forms;
+using System.Reflection;
+
+public class Test
+{
+
+	static void Main(string[] args)
+	{
+		Test t = new Test();
+
+		Assembly assm = t.GetType().Assembly;
+		FileInfo fi = new FileInfo(assm.Location);
+
+		MessageBox.Show("Will not succeed returning the root");
+		DirectoryInfo di = fi.Directory.Root;
+	}
+
+}


More information about the mono-bugs mailing list