Create an Account
username: password:
 
  MemeStreams Logo

MemeStreams Discussion

search


This page contains all of the posts and discussion on MemeStreams referencing the following web page: System.Drawing.Imaging.Bitmap bug?. You can find discussions on MemeStreams as you surf the web, even if you aren't a MemeStreams member, using the Threads Bookmarklet.

System.Drawing.Imaging.Bitmap bug?
by Acidus at 6:20 pm EST, Nov 4, 2008

This is interesting. wget this file: http://assets1.twitter.com/images/blank.gif

Image image = Bitmap.FromFile(@"C:\blank.gif");

Gives you an out of memory exception. Hexing the file shows a valid GIF header to me... this is weird.


 
RE: System.Drawing.Imaging.Bitmap bug?
by Worthersee at 6:56 pm EST, Nov 4, 2008

Acidus wrote:
This is interesting. wget this file: http://assets1.twitter.com/images/blank.gif

Image image = Bitmap.FromFile(@"C:\blank.gif");

Gives you an out of memory exception. Hexing the file shows a valid GIF header to me... this is weird.

Reflector says it throws OOM exception if "The file does not have a valid image format.-or- GDI+ does not support the pixel format of the file." Perhaps there is no pixel format defined in that file. It is still odd that they chose to throw that exception type.


 
 
Powered By Industrial Memetics