Hi,
I use IM to transform some web images and some urls are invalid.
I try to use try and catch in my code to make the program robust.
However, for some urls, my program will crash with a segmentation fault.
An example is
http://mail.colonial.net/~rbenoit/Images/754078592_453ba2abc8_o.jpg
And my code is
...
try
{
image->read("http://mail.colonial.net/~rbenoit/Images/754078592_453ba2abc8_o.jpg");
image->zoom(resample);
image->write("1.jpg");
}
catch(exception &error_)
{
continue;
}
And it seeded that the catch cannot catch this "segmentation fault"
error...
Is there anyone having this problem before?
Any help will be appreciated.
Good day
Shane
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users