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

Windows specific forum
ivory
User
User
Posts: 36
Joined: Fri Jun 25, 2004 2:30 am

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

Post 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?
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Is there a chance to get those images? So the PB Image library can be changed to support them as well?
quidquid Latine dictum sit altum videtur
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post 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.
SPAMINATOR NR.1
ivory
User
User
Posts: 36
Joined: Fri Jun 25, 2004 2:30 am

Post 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.
Post Reply