Page 1 of 1

How can I detect/avoid GPF's when processing images?

Posted: Tue Sep 07, 2004 6:08 pm
by ivory
I have a program that displays images from a directory, using loadimage, copyimage etc.

Most images work just fine, but some images cause GPF's. Is there a way to detect a GPF and avoid it, or to detect an image which would not be acceptable to the image libarary included with pure basic?

Posted: Tue Sep 07, 2004 6:55 pm
by freak
Is there a chance to get those images? So the PB Image library can be changed to support them as well?

Posted: Tue Sep 07, 2004 7:43 pm
by Rings
to avoid GPF use the OnError Library. But plz send faulty picture to the Purebasic-team so that an error could been fixed.

Posted: Wed Sep 08, 2004 12:42 am
by ivory
I'm trying to identify which ones are causing the gpf. I've eliminated all non-jpg's at this point. Since the gpf closes all windows immediately, I need to add a log so I can see which files were opened. Then I need to determine if it was the specific file being opened, or the one being closed, or a sequence...etc.

If I can come up with an exact jpg file, I will let you know.