Re: Unable to catch Gdk::PixbufError
- From: "Milosz Derezynski" <internalerror gmail com>
- To: "J B C Engelen ewi utwente nl" <J B C Engelen ewi utwente nl>
- Cc: gtkmm-list gnome org
- Subject: Re: Unable to catch Gdk::PixbufError
- Date: Sun, 18 Nov 2007 18:20:36 +0100
As a shot off, i'd say this is not the code causing the actual Pixbuf
error; otherwise i wouldn't know how any exception can get past a
catch(...)
Are you definitely sure this is the code part causing the problem?
-- Milosz
2007/11/18, J B C Engelen ewi utwente nl <J B C Engelen ewi utwente nl>:
> 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
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]