[Mono-bugs] [Bug 75508][Nor] New - Misleading OutOfMemoryException on Bitmap constructor if file not found

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Fri Jul 8 07:57:56 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 schwimmlehrer at hotmail.com.

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

--- shadow/75508	2005-07-08 07:57:56.000000000 -0400
+++ shadow/75508.tmp.17884	2005-07-08 07:57:56.000000000 -0400
@@ -0,0 +1,35 @@
+Bug#: 75508
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Drawing.
+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
+
+Description of Problem:
+Creating a Bitmap using the constructor causes an OutOfMemoryException
+which is misleading and maybe dangerous (using all my memory?)?
+
+Steps to reproduce the problem:
+1. Bitmap bitmap = new Bitmap("filedoesnotexist.png");
+
+Actual Results:
+System.OutOfMemoryException
+
+Expected Results:
+System.ArgumentException
+
+How often does this happen? 
+Always
+
+Additional Information:


More information about the mono-bugs mailing list