[Mono-bugs] [Bug 569940] Mono crashes when using System.Drawing.Image.FromFile with a special TIF-File

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jan 13 10:41:20 EST 2010


http://bugzilla.novell.com/show_bug.cgi?id=569940

http://bugzilla.novell.com/show_bug.cgi?id=569940#c3


Sebastien Pouliot <spouliot at novell.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Sebastien Pouliot <spouliot at novell.com> 2010-01-13 15:41:19 UTC ---
Fixed in HEAD (r149475), 2-6 (r149476) and 2-4 (r149477).

With such a bad image you'll get:

mono imageview.exe 569940.tif 

Unhandled Exception: System.ArgumentException: A null reference or invalid
value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] in <filename
unknown>:0 
  at System.Drawing.Image.FromFile (System.String filename, Boolean
useEmbeddedColorManagement) [0x00000] in <filename unknown>:0 
  at System.Drawing.Image.FromFile (System.String filename) [0x00000] in
<filename unknown>:0 
  at MainForm..ctor (System.String filename) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) MainForm:.ctor (string)
  at MainForm.Main (System.String[] args) [0x00000] in <filename unknown>:0

-- 
Configure bugmail: http://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