I'm trying to make a simple slide show type program that displays an animated GIF image for 10 seconds, then moves on to the next one in sequence, plays that for 10 seconds...etc. and I've come across a problem I haven't seen before: animating the GIF seems to crash the program after a short time (it seems to be about the same frame every time if it matters). I've tried using ImageAnimator and just loading the image into a PictureBox and both pop up "a generic error occurred in GDI+". I then tested it by making a program with a form with a PictureBox conatining the image and got the same result. (and, more odd, when attempting to load the image the Select Resource dialog crashed at the same spot, and reloading the dialog afterwards buttons would randomly be replaced by white rectangles with red X's in them). Is there any way to stop this? (The GIF works fine in web browsers, although it stops animating at the same point in Windows Picture and Fax Viewer)
EDIT: I just thought to do another quick test, and it only seems to be that 1 image. I still need to fix it, as the image is important to the slide show.
This post has been edited by lewax00: 29 May 2008 - 07:55 PM
That could work, I'll try it. the only issue I can see is loading 90 frames into memory quickly, although I could cycle them out and only keep the current and next one or two loaded at a time...
EDIT: It worked, and I can run it at the original resolution instead of the cropped and scaled version I made for the GIF, so thank you! But I am still curious as to why this is happening and how to fix it, but its not that important now.
This post has been edited by lewax00: 30 May 2008 - 02:20 PM