News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

GIF Decoder Crashes

Started by localmotion34, May 24, 2007, 09:10:32 PM

Previous topic - Next topic

localmotion34

Your app loads the files fine.  However, it cannot load other GIFs downloaded from the web, or seemingly larger in size than 600KB.  They show up as blank squares in the custom drawn listview. 

When i link the LIB to my app, i cannot return the DIBINFO structure on the GIFs i have uploaded here.  Only very small GIFs will return a valid DIBINFO pointer. 

raymond

Many of the larger image files uploaded to the web (whether JPG, GIF, PNG) may be interlaced to provide a quick idea of the image by displaying only a portion of the pixels during a download while the remainder of the image is being decoded. I have not yet included the necessary code in the lib to deal with that feature. If a GIF or JPG file is indicated as being interlaced, the lib simply returns 0.

This does not explain why your regular non-interlaced GIF images were crashing.

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

raymond

Could you also provide a link to some of those 600+kb GIF files which are problematic.

Raymond
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com