[Mono-bugs] [Bug 76276][Nor] Changed - BinaryReader fails to read string

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Sep 30 07:55:36 EDT 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 lluis at ximian.com.

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

--- shadow/76276	2005-09-30 03:44:19.000000000 -0400
+++ shadow/76276.tmp.29207	2005-09-30 07:55:36.000000000 -0400
@@ -11,13 +11,13 @@
 AssignedTo: lluis at ximian.com                            
 ReportedBy: informatique.internet at fiducial.fr               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: DotNet Remoting : Failed to read past end of stream
+Summary: BinaryReader fails to read string
 
 There's surely a bug with serializing and deserializing string in mono...
 
 I've done a little .NET remoting serveur :  with a single Hello Method :
 
 
@@ -62,6 +62,31 @@
 Mono (Server) and Windows (Client)
 
 ------- Additional Comments From informatique.internet at fiducial.fr  2005-09-29 11:57 -------
 Created an attachment (id=15840)
 Client/Server Test Case : BugTest.tar.gz
 
+
+------- Additional Comments From lluis at ximian.com  2005-09-30 07:55 -------
+This is not a remoting issue. Something is wrong with the binary
+reader. Here is a simplified test case:
+
+using System;
+using System.IO;
+
+class MainClass
+{
+	public static void Main(string[] args)
+	{
+		MemoryStream ms = new MemoryStream ();
+		BinaryWriter w = new BinaryWriter (ms);
+		w.Write ("CODE des types de notes à afficher ex NOTTECH_EXPE, on
+gère * exemple NOTETECH* on prend tous les codes commençant par NOTENAT");
+		w.Flush ();
+		ms.Position = 0;
+		
+		BinaryReader r = new BinaryReader (ms);
+		r.ReadString ();
+		Console.WriteLine ("ok");
+	}
+}
+


More information about the mono-bugs mailing list