RE: Unable to catch Gdk::PixbufError
- From: J B C Engelen ewi utwente nl
- To: <internalerror gmail com>
- Cc: gtkmm-list gnome org
- Subject: RE: Unable to catch Gdk::PixbufError
- Date: Sun, 18 Nov 2007 18:27:52 +0100
> -----Original Message-----
> From: Milosz Derezynski [mailto:internalerror gmail com]
> Sent: zondag 18 november 2007 18:21
>
> 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?
100% certain.
I am really puzzled by it.
>
> -- 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]