[Mono-bugs] [Bug 80565][Nor] Changed - Error using resgen to generate a resource containing an icon

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Jan 30 11:58:56 EST 2007


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=80565

--- shadow/80565	2007-01-30 11:54:25.000000000 -0500
+++ shadow/80565.tmp.13678	2007-01-30 11:58:56.000000000 -0500
@@ -1,12 +1,12 @@
 Bug#: 80565
 Product: Mono: Class Libraries
 Version: 1.2
 OS: unknown
 OS Details: Ubuntu Edgy
-Status: NEW   
+Status: ASSIGNED   
 Resolution: 
 Severity: Unknown
 Priority: Normal
 Component: Sys.Drawing.
 AssignedTo: sebastien at ximian.com                            
 ReportedBy: frederik.carlier at ugent.be               
@@ -112,6 +112,24 @@
 ------- Additional Comments From frederik.carlier at ugent.be  2007-01-30 11:54 -------
 I had a quick look at the code, and it seems like resgen uses the
 System.Resources.ResourceWriter class, which in turn uses binary
 serialization to write out the contents. That is, the object gets
 loaded and then serialized back into the resources file.
 Can't test it on Windows for the moment, though.
+
+------- Additional Comments From sebastien at ximian.com  2007-01-30 11:58 -------
+Yes, the stacktrace shows that our serialization code calls Save,
+which can't work for decoder-only codecs, like ICO. MS probably has
+some other way to serialize the image.
+
+Read in 2 resources from 'Resources.resx'
+System.ArgumentException: No codec available for
+format:b96b3cb5-0728-11d3-9d7b-0000f81ef32e
+  at System.Drawing.Image.Save (System.IO.Stream stream,
+System.Drawing.Imaging.ImageFormat format) [0x00033] in
+/home/poupou/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:429
+  at
+System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData
+(System.Runtime.Serialization.SerializationInfo info, StreamingContext
+context) [0x00006] in
+/home/poupou/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:82
+


More information about the mono-bugs mailing list