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

2014.12.29 17:27 "Re: [Tiff] Windows Error Dialog", by Aaron Boxer

Unfortunately, when I set an error handler, the va_list parameter is garbled.

Here is my simple error handler:

void MyTiffErrorHandler(const char *module, const char *fmt, va_list ap) {
        printf(fmt, ap);
}

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/
>