[Mono-bugs] [Bug 79039][Nor] Changed - resgen2 does not convert resource files to resx files.

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 28 15:47:07 EDT 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 sebastien at ximian.com.

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

--- shadow/79039	2006-09-27 17:57:57.000000000 -0400
+++ shadow/79039.tmp.23222	2006-09-28 15:47:06.000000000 -0400
@@ -71,6 +71,33 @@
 but that NRE is probably not the only problem...
 
 ------- Additional Comments From atsushi at ximian.com  2006-09-27 17:57 -------
 Created an attachment (id=17756)
 fix
 
+
+------- Additional Comments From sebastien at ximian.com  2006-09-28 15:47 -------
+results with Atsushi's patch
+
+> mono --debug ~/svn/mcs/class/lib/net_2_0/resgen.exe 79039.resources
+79039.resx
+System.ArgumentException: Stream is not a valied .resources file!  It
+was possibly truncated. ---> System.IO.EndOfStreamException: Failed to
+read past end of stream.
+  at System.IO.BinaryReader.FillBuffer (Int32 bytes) [0x0006d] in
+/home/poupou/svn/mcs/class/corlib/System.IO/BinaryReader.cs:119
+  at System.IO.BinaryReader.ReadInt32 () [0x00000] in
+/home/poupou/svn/mcs/class/corlib/System.IO/BinaryReader.cs:425
+  at System.Resources.ResourceReader.ReadHeaders () [0x00000] in
+/home/poupou/svn/mcs/class/corlib/System.Resources/ResourceReader.cs:116
+--- End of inner exception stack trace ---
+
+  at System.Resources.ResourceReader.ReadHeaders () [0x0029b] in
+/home/poupou/svn/mcs/class/corlib/System.Resources/ResourceReader.cs:209
+  at System.Resources.ResourceReader..ctor (System.IO.Stream stream)
+[0x00055] in
+/home/poupou/svn/mcs/class/corlib/System.Resources/ResourceReader.cs:93
+  at ResGen.GetReader (System.IO.Stream stream, System.String name)
+[0x00058] in /home/poupou/svn/mcs/tools/resgen/monoresgen.cs:65
+  at ResGen.CompileResourceFile (System.String sname, System.String
+dname) [0x00009] in /home/poupou/svn/mcs/tools/resgen/monoresgen.cs:100
+


More information about the mono-bugs mailing list