[Mono-bugs] [Bug 81552][Nor] Changed - Crash after call Bitmap.LockBits

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue May 8 05:08:56 EDT 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 smalcom at ukr.net.

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

--- shadow/81552	2007-05-07 13:36:01.000000000 -0400
+++ shadow/81552.tmp.23988	2007-05-08 05:08:56.000000000 -0400
@@ -176,6 +176,20 @@
 
 [we have many unit tests doing similar calls without any crash (on
 several architectures) so this may be specific to the bitmap/rectangle
 you are using]
 
 Thanks
+
+------- Additional Comments From smalcom at ukr.net  2007-05-08 05:08 -------
+using mono-1.2.4, libgdiplus at revision 76633, 
+System.Drawing, Version=2.0.0.0, Culture=neutral, 
+PublicKeyToken=b03f5f7f11d50a3a
+
+sample code:
+Bitmap map = new Bitmap(filename);
+Bpp = PixelFormat.Format24bppRgb;
+Rectangle rectangle = new Rectangle(0, 0, map.Width, map.Height);
+BitmapData bitmapdata = map.LockBits(rectangle, 
+ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb);
+
+


More information about the mono-bugs mailing list