[Mono-bugs] [Bug 78166][Min] New - Image.FromFile gives ambiguous exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Apr 22 15:14:40 EDT 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 scottell.lists at gmail.com.

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

--- shadow/78166	2006-04-22 15:14:40.000000000 -0400
+++ shadow/78166.tmp.19718	2006-04-22 15:14:40.000000000 -0400
@@ -0,0 +1,38 @@
+Bug#: 78166
+Product: Mono: Class Libraries
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Drawing.
+AssignedTo: peter at novonyx.com                            
+ReportedBy: scottell.lists at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Image.FromFile gives ambiguous exception
+
+Image.FromFile has clearly been implemented, for when I do:
+
+Image msn = Image.FromFile("msn_icon.png");
+
+It works fine.  However, if I pass a path to a file from which an image
+cannot be loaded, for example, a plain text file:
+
+Image msn = Image.FromFile("/home/scottell/Desktop/test");
+
+I get the following exception:
+
+Unhandled Exception: System.NotImplementedException: Feature not implemented.
+in <0x0020c> System.Drawing.GDIPlus:CheckStatus (Status status)
+in <0x0005d> System.Drawing.Image:FromFile (System.String filename, Boolean
+useEmbeddedColorManagement)
+in <0x0000c> System.Drawing.Image:FromFile (System.String filename)
+in <0x000fa> DrawMe:Main (System.String[] argv)
+
+I would expect that exception if the FromFile method not implemented.  Not
+when I pass a bad parameter.


More information about the mono-bugs mailing list