[Mono-bugs] [Bug 77863][Maj] New - FileStream class doesn't seek correctly after accessing a property

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Mar 21 07:58:39 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 a.grandi at gmail.com.

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

--- shadow/77863	2006-03-21 07:58:39.000000000 -0500
+++ shadow/77863.tmp.11827	2006-03-21 07:58:39.000000000 -0500
@@ -0,0 +1,42 @@
+Bug#: 77863
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: Ubuntu 5.10
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Major
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: a.grandi at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: FileStream class doesn't seek correctly after accessing a property
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+
+Description of Problem: if you access a property like .Lenght or .Position
+in a FileStream object, the Seek is lost.
+
+Steps to reproduce the problem:
+1. Run the code you find in the attachment.
+2. Run again commenting the line
+"Console.WriteLine(Convert.ToInt32(fs.Length));"
+
+Actual Results:
+Bytes read are zero.
+
+Expected Results:
+It should read at least 22 bytes.
+
+How often does this happen? 
+ALWAYS.
+
+Additional Information:
+If you run this code commenting the line
+"Console.WriteLine(Convert.ToInt32(fs.Length));" the code runs without any
+strange behaviour.


More information about the mono-bugs mailing list