Unable to catch Gdk::PixbufError
- From: J B C Engelen ewi utwente nl
- To: <gtkmm-list gnome org>
- Subject: Unable to catch Gdk::PixbufError
- Date: Sun, 18 Nov 2007 14:36:23 +0100
Hello all,
I am an Inkscape developer and have problems with
Gdk::Pixbuf::create_from_file.
This is the code we have:
try {
img = Gdk::Pixbuf::create_from_file(fileName);
}
catch (const Glib::FileError & e)
{
g_message("caught Glib::FileError in SVGPreview::showImage");
return;
}
catch (const Gdk::PixbufError & e)
{
g_message("Gdk::PixbufError in SVGPreview::showImage");
return;
}
catch (...)
{
g_message("Caught ... in SVGPreview::showImage");
return;
}
Unfortunately *none* of the catchers actually catch Gdk::PixbufError
exception, not even 'catch (...)' ). Inkscape crashes with:
terminate called after throwing an instance of 'Gdk::PixbufError'
Can anybody shed some light on this?
Thanks a lot,
Johan Engelen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]