Re: Unable to catch Gdk::PixbufError
- From: Murray Cumming <murrayc murrayc com>
- To: J B C Engelen ewi utwente nl
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Unable to catch Gdk::PixbufError
- Date: Sun, 18 Nov 2007 13:21:44 +0100
On Sun, 2007-11-18 at 12:53 +0100, J B C Engelen ewi utwente nl wrote:
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 (Glib::FileError & e)
{
g_message("caught Glib::FileError in SVGPreview::showImage");
return;
}
catch (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:
You should generally catch C++ exceptions as const references. I've
known this to be significant in the past.
gtkmm-list is usually a better place for C++ questions, by the way.
terminate called after throwing an instance of 'Gdk::PixbufError'
Can anybody shed some light on this?
--
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]