[Mono-bugs] [Bug 76374][Nor] Changed - Binary.PeekChar Bug

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Nov 1 23:29:21 EST 2005


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 gonzaloantonio at gmail.com.

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

--- shadow/76374	2005-11-01 20:39:23.000000000 -0500
+++ shadow/76374.tmp.9875	2005-11-01 23:29:21.000000000 -0500
@@ -109,6 +109,13 @@
 Int32 byte
 Count, Char[] chars, Int32 charIndex)
    at System.IO.BinaryReader.InternalReadOneChar()
    at System.IO.BinaryReader.Read()
    at System.IO.BinaryReader.PeekChar()
    at Foo.Main()
+
+------- Additional Comments From gonzaloantonio at gmail.com  2005-11-01 23:29 -------
+Well, that it explains why always failed when to try to use PeekChar.
+i resolved that inconvenience with the method BaseStream.Position,
+calling to CanSeek before reading.
+
+Regards.


More information about the mono-bugs mailing list