GIF: data stream seems to be truncated

I am working with a database of many GIF images. I build the screen image from a database of images (these happen to be map images), convert to a collection of bitmap images and then draw to memory using “mc.DrawBitmap(self.bitmaps[idx], x, y)” then blit to dc. When I get close to the edge of my database (running out of map real estate) I get the error message “GIF: data stream seems to be truncated”. Actually, everything seems works ok. I just am forced to dismiss this error message over and over again. The drawn map is fine. Because the constant need to dismiss the error message is a bit annoying I want to avoid or trap this error. But so far I have not found a way to do this. I have searched for a solution many times to no avail.

Does
anyone have a suggestion for how best to handle this issue.

Thanks…

Kim