[Mono-bugs] [Bug 80277][Blo] New - GDIPlus.CheckStatus: System.OutOfMemoryException
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Sat Dec 16 12:56:48 EST 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 dna at informatik.uni-kiel.de.
http://bugzilla.ximian.com/show_bug.cgi?id=80277
--- shadow/80277 2006-12-16 12:56:48.000000000 -0500
+++ shadow/80277.tmp.18128 2006-12-16 12:56:48.000000000 -0500
@@ -0,0 +1,65 @@
+Bug#: 80277
+Product: Mono: Class Libraries
+Version: 1.2
+OS: GNU/Linux [Other]
+OS Details: Ubuntu 6.10
+Status: NEW
+Resolution:
+Severity:
+Priority: Blocker
+Component: Sys.Drawing.
+AssignedTo: mono-bugs at ximian.com
+ReportedBy: dna at informatik.uni-kiel.de
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: GDIPlus.CheckStatus: System.OutOfMemoryException
+
+Description of Problem:
+Creating a new Bitmap from a Win32 icon file produced a OutOfMemoryException.
+
+Steps to reproduce the problem:
+1. following code:
+using System;
+using System.Drawing;
+
+namespace ImageTest
+{
+ static class Program
+ {
+ static void Main()
+ {
+ Bitmap b = new Bitmap("mono.ico");
+ }
+ }
+}
+
+2. compile with mcs or gmcs
+3. start that application
+
+Actual Results:
+Unhandled Exception: System.OutOfMemoryException: Out of memory.
+ at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00078] in
+/home/dna/mono-svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:192
+ at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm)
+[0x00023] in
+/home/dna/mono-svn/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:1
+18
+ at System.Drawing.Bitmap..ctor (System.String filename) [0x00000] in
+/home/dna/mono-svn/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:85
+ at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
+ at ImageTest.Program.Main () [0x00000] in
+/home/dna/Projects/ImageTest/ImageTest/Main.cs:11
+
+
+Expected Results:
+a new Bitmap.
+
+How often does this happen?
+every time.
+
+Additional Information:
+My system is _not_ out of memory, there're over 150 MB free, the icon size
+is just 20kbytes.
+This code works well on .NET.
More information about the mono-bugs
mailing list