[Mono-bugs] [Bug 75508][Nor] Changed - Misleading
OutOfMemoryException on Bitmap constructor if file not found
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Wed Aug 24 05:44:50 EDT 2005
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 kornelpal at hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=75508
--- shadow/75508 2005-07-10 06:21:39.000000000 -0400
+++ shadow/75508.tmp.12462 2005-08-24 05:44:50.000000000 -0400
@@ -5,13 +5,13 @@
OS Details:
Status: NEW
Resolution:
Severity: Unknown
Priority: Normal
Component: Sys.Drawing.
-AssignedTo: kornelpal at hotmail.com
+AssignedTo: mono-bugs at ximian.com
ReportedBy: schwimmlehrer at hotmail.com
QAContact: mono-bugs at ximian.com
TargetMilestone: ---
URL:
Cc:
Summary: Misleading OutOfMemoryException on Bitmap constructor if file not found
@@ -35,6 +35,19 @@
Additional Information:
------- Additional Comments From kornelpal at hotmail.com 2005-07-10 06:21 -------
The problem is that Mono uses GdipLoadImageFromFile while MS uses
GdipCreateBitmapFromFile and these functions have different
behaviour at least regarding error codes.
+
+------- Additional Comments From kornelpal at hotmail.com 2005-08-24 05:44 -------
+This bug should be solved in libgdiplus by renaming (seems to need
+no modification) GdipLoadImageFromFile to GdipCreateBitmapFromFile.
+Then GdipCreateBitmapFromFile can be used in System.Drawing that
+will result in correct exception on Windows.
+
+To get the correct exception on Linux as well OutOfMemory has to be
+returned instead of FileNotFound by libgdiplus in
+GdipCreateBitmapFromFile.
+
+I have no test environment for libgdiplus so I'm reassigning this
+bug to mono-bugs at ximian.com.
More information about the mono-bugs
mailing list