[Mono-bugs] [Bug 82545][Nor] New - [Win32] PageFile does not exist for Mono
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 23 07:27:34 EDT 2007
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 gert.driesen at pandora.be.
http://bugzilla.ximian.com/show_bug.cgi?id=82545
--- shadow/82545 2007-08-23 07:27:34.000000000 -0400
+++ shadow/82545.tmp.399 2007-08-23 07:27:34.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 82545
+Product: Mono: Runtime
+Version: 1.2
+OS:
+OS Details: Windows XP SP2
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: io-layer
+AssignedTo: dick at ximian.com
+ReportedBy: gert.driesen at pandora.be
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: [Win32] PageFile does not exist for Mono
+
+When using Mono, Directory.GetFiles returned an entry for the Windows
+pagefile but when using FileInfo to obtain information on the pagefile it
+reports that it does not exist.
+
+This prevents the (Open/Save)FileDialog from listing entries of the root
+directory of a volume containing a pagefile.
+
+To reproduce, compile and run the following code snippet on Windows:
+
+using System;
+using System.IO;
+
+class Program
+{
+ static void Main ()
+ {
+ FileInfo fi = new FileInfo (@"c:\pagefile.sys");
+ Console.WriteLine (fi.Exists);
+ Console.WriteLine (fi.Attributes);
+ Console.WriteLine (fi.FullName);
+ Console.WriteLine (fi.Name);
+ Console.WriteLine (fi.Length);
+ Console.WriteLine (fi.LastAccessTime);
+ }
+}
+
+Expected result:
+
+The following or similar output is written to the console:
+True
+Hidden, System, Archive
+c:\pagefile.sys
+pagefile.sys
+1610612736
+23/08/2007 10:56:22
+
+Actual result:
+
+False
+0
+c:\pagefile.sys
+pagefile.sys
+
+Unhandled Exception: System.IO.FileNotFoundException: Could not find
+file "c:\pa
+gefile.sys".
+File name: "c:\pagefile.sys"
+ at System.IO.FileInfo.get_Length () [0x00000]
+ at (wrapper remoting-invoke-with-check) System.IO.FileInfo:get_Length ()
+ at Program.Main () [0x00000]
More information about the mono-bugs
mailing list