[Mono-bugs] [Bug 338779] Loading image from stream reset position to 0

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Nov 5 12:51:47 EST 2007


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


Gert Driesen <gert.driesen at pandora.be> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |gert.driesen at pandora.be




--- Comment #3 from Gert Driesen <gert.driesen at pandora.be>  2007-11-05 10:51:46 MST ---
The patch should be reverted. However, we should no longer reset a stream when
we're saving an image to a stream.

To reproduce, compile and run the attached test case.

Expected result:

The following output is written to the console:
[ImageFormat: b96b3cab-0728-11d3-9d7b-0000f81ef32e]

Actual result:

Unhandled Exception: System.ArgumentException: A null reference or invalid
value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00000] 
  at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x00000] 
  at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean
keepAlive) [0x00000] 
  at System.Drawing.Image.FromStream (System.IO.Stream stream) [0x00000] 
  at Program.LoadTest () [0x00000] 
  at Program.Main () [0x00000] 


-- 
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