G
Guest
My app loads a bunch of bitmaps, stored on the device as separate .bmp files.
I use this simple code to load them:
Bitmap bmp = new Bitmap(path);
For most of these bitmaps, I an exception is thrown (and internally catched)
in System.Drawing.dll:
A first chance exception of type 'System.InvalidCastException' occurred in
System.Drawing.dll
I've been trying to understand why this would happen on some bitmaps and not
on others. All the .bmp files are valid (created with Macromedia Fireworks)
and small in size (from 16x16, 20x20, 32x32 for most of them).
Any lead as to what's internally happening?
I use this simple code to load them:
Bitmap bmp = new Bitmap(path);
For most of these bitmaps, I an exception is thrown (and internally catched)
in System.Drawing.dll:
A first chance exception of type 'System.InvalidCastException' occurred in
System.Drawing.dll
I've been trying to understand why this would happen on some bitmaps and not
on others. All the .bmp files are valid (created with Macromedia Fireworks)
and small in size (from 16x16, 20x20, 32x32 for most of them).
Any lead as to what's internally happening?