On Sun, 2007-11-18 at 12:53 +0100, [EMAIL PROTECTED] 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? -- [EMAIL PROTECTED] www.murrayc.com www.openismus.com _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list