[Mono-bugs] [Bug 472966] Resgen produces cryptic error message when libgdiplus does not support an image format.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Sep 14 10:32:56 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=472966

https://bugzilla.novell.com/show_bug.cgi?id=472966#c3


expe bition <expebition at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |expebition at gmail.com

--- Comment #3 from expe bition <expebition at gmail.com> 2011-09-14 14:32:55 UTC ---
In the file:

  mcs/class/System.Drawing/System.Drawing/Image.cs

near line 297 has:

  st = GDIPlus.GdipLoadImageFromDelegate_linux (sh.GetHeaderDelegate,
sh.GetBytesDelegate, sh.PutBytesDelegate, sh.SeekDelegate, sh.CloseDelegate,
sh.SizeDelegate, out imagePtr);

This shouldn't just ignore failure to load image; at the very least it should
output a warning message.  Better would be to throw an exception.

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list