[Mono-bugs] [Bug 78166][Wis] Changed - Image.FromFile gives ambiguous exception

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Apr 25 12:10:26 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 kornelpal at hotmail.com.

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

--- shadow/78166	2006-04-25 10:26:18.000000000 -0400
+++ shadow/78166.tmp.10652	2006-04-25 12:10:26.000000000 -0400
@@ -67,6 +67,13 @@
 +
 +               default: {
 +                       status = UnknownImageFormat;
 +                       break;
 +               }
 
+
+------- Additional Comments From kornelpal at hotmail.com  2006-04-25 12:10 -------
+I think that we should trow the same exception 
+(OutOfMemoryException) when the image format is not supported as 
+MS.NET does because if we throw different exception this fact cannot 
+be determined. I know that OutOfMemoryException is very strange for 
+this status but I think compatibility is important in this situation.


More information about the mono-bugs mailing list