AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2014.12.29 17:07 "[Tiff] Fwd: Windows Error Dialog", by Aaron Boxer
2014.12.29 15:18 "Re: [Tiff] Windows Error Dialog", by Olivier Paquet
2014.12.29 17:27 "Re: [Tiff] Windows Error Dialog", by Aaron Boxer
2014.12.29 18:02 "Re: [Tiff] Windows Error Dialog", by Olivier Paquet
2014.12.29 18:59 "Re: [Tiff] Windows Error Dialog", by Aaron Boxer

2014.12.29 17:07 "[Tiff] Fwd: Windows Error Dialog", by Aaron Boxer

---------- Forwarded message ---------- From: Aaron Boxer <boxerab@gmail.com> Date: Mon, Dec 29, 2014 at 12:07 PM Subject: Re: [Tiff] Windows Error Dialog To: Olivier Paquet <olivier.paquet@gmail.com>

Perfect. Thanks, Olivier!

On Mon, Dec 29, 2014 at 10:18 AM, Olivier Paquet <olivier.paquet@gmail.com>
wrote:

> Hi,
> That behavior depends on how libtiff was built. It can also
> default to writing the error message to the console. Either way, to
> redirect the messages, set your own error handler with
> TIFFSetErrorHandler() and TIFFSetWarningHandler(). You should still
> check the return value of the functions you're calling for errors. In
> your example, TIFFOpen would return a NULL TIFF*.
>
> Olivier
>
> 2014-12-29 9:59 GMT-05:00 Aaron Boxer <boxerab@gmail.com>:
> > Hi,
> > I am using the latest libtiff on windows. When I try to open a file that
> > doesn't exist, for example,
> > I see a windows dialog pop up with an error message. Is it possible
> > for the library to simply set an error code and return?
> >
> > Thanks!
> > Aaron
> >
> > _______________________________________________
> > Tiff mailing list: Tiff@lists.maptools.org
> > http://lists.maptools.org/mailman/listinfo/tiff
> > http://www.remotesensing.org/libtiff/
>