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. RE: System.Drawing.Imaging.Bitmap bug? |