[Mono-bugs] [Bug 71088][Min] New - FileInfo.Open(FileMode.Append) traces

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 7 Jan 2005 10:34:58 -0500 (EST)


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 tambet@ximian.com.

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

--- shadow/71088	2005-01-07 10:34:58.000000000 -0500
+++ shadow/71088.tmp.7549	2005-01-07 10:34:58.000000000 -0500
@@ -0,0 +1,45 @@
+Bug#: 71088
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: CORLIB
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: tambet@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileInfo.Open(FileMode.Append) traces
+
+FileInfo f = new FileInfo ("foo");
+FileStream s = f.Open (FileMode.Append);
+
+Produces a trace:
+
+Unhandled Exception: System.ArgumentException: Append streams can not be read
+in <0x00256> System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
+in <0x0001d> System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x0004f> (wrapper remoting-invoke-with-check)
+System.IO.FileStream:.ctor
+(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x0002b> System.IO.FileInfo:Open
+(System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x00072> (wrapper remoting-invoke-with-check) System.IO.FileInfo:Open
+(System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
+in <0x00016> System.IO.FileInfo:Open (System.IO.FileMode,System.IO.FileAccess)
+in <0x00059> (wrapper remoting-invoke-with-check) System.IO.FileInfo:Open
+(System.IO.FileMode,System.IO.FileAccess)
+in <0x00013> System.IO.FileInfo:Open (System.IO.FileMode)
+in <0x0005b> (wrapper remoting-invoke-with-check) System.IO.FileInfo:Open
+(System.IO.FileMode)
+in <0x00038> Test:Main (string[])
+
+
+Not so using Microsoft corlib (1.1).