Re: Unable to catch Gdk::PixbufError



On Tue, Nov 20, 2007 at 04:42:43PM +0100, Murray Cumming wrote:
> On Tue, 2007-11-20 at 17:17 +0200, Mohammed Sameer wrote:
> > On Tue, Nov 20, 2007 at 08:17:36AM +0100, Murray Cumming wrote:
> > > 
> > > On Mon, 2007-11-19 at 23:26 +0200, Mohammed Sameer wrote:
> > > > On Mon, Nov 19, 2007 at 07:59:05PM +0100, J B C Engelen ewi utwente nl wrote:
> > > > > Ah ofcourse, sorry. Run Inkscape, and open the "file"->"open..." dialog.
> > > > > The code tries to show a preview of the selected file in the file
> > > > > dialog. Selecting an invalid file (e.g. a 0 byte .jpg file) will throw
> > > > > the exception that is not caught.
> > > > 
> > > > 
> > > > The only problem is I couldn't reproduce it!!
> > > > I did touch /tmp/foo.jpg
> > > > 
> > > > But the exception was caught:
> > > > ** Message: Gdk::PixbufError in SVGPreview::showImage
> > > 
> > > JBC, are you using some strange distro? Gentoo maybe? Are you mixing
> > > compiler versions?
> > 
> > Can this happen if we compile with -fno-exceptions (Or whatever the flag is) ?
> 
> I don't see how it could throw exceptions if -fno-exceptions is used,
> but I guess that an exception might not reach the try/catch if one of
> the libraries was built without -fno-exceptions. 
> 
> But none of the *mm libraries should build if you use -fno-exceptions
> without using the special --disable-api-exceptios build option, which
> changes the API slightly. You haven't done that.

I'm not having this problem. I'm only trying to guess ;-)

-- 
GPG-Key: 0xA3FD0DF7 - 9F73 032E EAC9 F7AD 951F  280E CB66 8E29 A3FD 0DF7
Debian User and Developer.
Homepage: www.foolab.org

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]