[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
Wed Sep 27 17:39:24 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.


--- shadow/79039	2006-08-09 05:00:20.000000000 -0400
+++ shadow/79039.tmp.30371	2006-09-27 17:39:24.000000000 -0400
@@ -1,22 +1,21 @@
 Bug#: 79039
 Product: Mono: Tools
 Version: 1.1
+OS: unknown
 OS Details: Service Pack 2 
 Status: NEW   
+Severity: Unknown
 Priority: Normal
 Component: tools
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: zippy1981 at gmail.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 Summary: resgen2 does not convert resource files to resx files.
 I was using resgen2 to convert a StringBuilder.resources from the
 SharpDevelop sources to a resx file. It failed as illustrated below:
@@ -44,6 +43,29 @@
 ro a resx and back. Mono's resgen2 was not able to parse it still.
 ------- Additional Comments From zippy1981 at gmail.com  2006-08-09 05:00 -------
 Created an attachment (id=17429)
 Resource file I attempted to convert.
+------- Additional Comments From sebastien at ximian.com  2006-09-27 17:39 -------
+More information (by printing the whole stack trace)
+mono --debug ~/svn/mcs/class/lib/net_2_0/resgen.exe 79039.resources
+System.NullReferenceException: Object reference not set to an instance
+of an object
+  at System.Xml.XmlTextWriter.Initialize (System.IO.TextWriter writer)
+[0x0003c] in
+  at System.Xml.XmlTextWriter..ctor (System.IO.TextWriter writer)
+[0x00060] in
+  at System.Resources.ResXResourceWriter.InitWriter () [0x00032] in
+  at System.Resources.ResXResourceWriter.AddResource (System.String
+name, System.String value) [0x00044] in
+  at ResGen.CompileResourceFile (System.String sname, System.String
+dname) [0x00060] in /home/poupou/svn/mcs/tools/resgen/monoresgen.cs:110
+but that NRE is probably not the only problem...

More information about the mono-bugs mailing list