[Mono-bugs] [Bug 80797][Nor] Changed - vs2003 app resources loading doesn't work properly in mono 1.2

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Feb 12 15:33:40 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=80797

--- shadow/80797	2007-02-11 17:44:04.000000000 -0500
+++ shadow/80797.tmp.12244	2007-02-12 15:33:40.000000000 -0500
@@ -141,6 +141,22 @@
 
 ------- Additional Comments From sebastien at ximian.com  2007-02-11 17:44 -------
 My guess is that MS resgen "promotes" the GIF bitmaps to 16bpp BMP.
 That would explain why we're seeing so much 16bpp in resources when no
 one seems to use that format otherwise. I'll try to duplicate this
 with VS.NET 2005...
+
+------- Additional Comments From sebastien at ximian.com  2007-02-12 15:33 -------
+The image that fails is Locs.ImageStream which is, as far as the
+generated code tells, kept as a 16x16 bitmap with 16bpp. 
+
+this.Locs.ColorDepth = System.Windows.Forms.ColorDepth.Depth16Bit;
+this.Locs.ImageSize = new System.Drawing.Size(16, 16);
+this.Locs.ImageStream =
+((System.Windows.Forms.ImageListStreamer)(resources.GetObject("Locs.ImageStream")));
+this.Locs.TransparentColor = System.Drawing.Color.Transparent;
+
+Loading the bitmap (with libgdiplus) suggest a 64x64 bitmap
+mis-encoded 16bpp (bad header) which miss a few bytes at the end
+(causing the error).
+
+Is your attached 8x8 GIF part of the ImageList ?


More information about the mono-bugs mailing list