[Mono-bugs] [Bug 80151][Nor] Changed - [Windows] Image Stream must be kept alive

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Mon Jan 15 15:23:53 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.


--- shadow/80151	2006-12-08 19:36:12.000000000 -0500
+++ shadow/80151.tmp.11427	2007-01-15 15:23:53.000000000 -0500
@@ -1,22 +1,22 @@
 Bug#: 80151
 Product: Mono: Class Libraries
 Version: 1.2
-OS: unknown
+OS: Windows XP
 OS Details: 
 Status: NEW   
 Severity: Unknown
-Priority: Blocker
-Component: Windows.Forms
-AssignedTo: toshok at ximian.com                            
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: sebastien at ximian.com                            
 ReportedBy: monkey at jpobst.com               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: 1_2
-Summary: [Windows - DataGrid] MakeTransparent OutOfMemoryException
+Summary: [Windows] Image Stream must be kept alive
 The lines in DataGrid.cs:
 - back_button_image.MakeTransparent (Color.Transparent);
 - parent_rows_button_image.MakeTransparent (Color.Transparent);
 cause an OutOfMemoryException when doing a new DataGrid () on Windows.  The
@@ -32,6 +32,19 @@
 ------- Additional Comments From toshok at ximian.com  2006-12-08 19:36 -------
 I've commented out the calls in trunk (we released 1.2.2 without them)
  going to cc sebastien on this one, as it's got to be a weird S.D./gdi
 interaction with resources.
+------- Additional Comments From sebastien at ximian.com  2007-01-15 15:23 -------
+<shana> spouliot_away: I've stumbled on to a gdi group post where an
+MS guy says that the the Stream must stay alive for the life of the
+<shana> "If a Bitmap or Image is created from a stream or file or
+memory chunk, that that stream or file or memory is "locked" by GDI+
+for the life of the Bitmap or Image. In the case of stream or memory,
+you must ensure the stream or memory stay's "alive" for the life of
+the Image or Bitmap. "
+-> moving to SD

More information about the mono-bugs mailing list