2006.10.23 03:15 "[Tiff] How to Supress TIFFReadDirectory warning", by muthu kumar

2006.10.23 11:19 "Re: [Tiff] How to Supress TIFFReadDirectory warning", by Gerben Vos

On Sun, 22 Oct 2006, muthu kumar wrote:

I really don't know how to supress this warning

Bob Friesenhahn wrote:

Libtiff itself does not include any dialog windows.

Oh yes, tif_win32.c does.

Anyway, the easiest way to suppress warnings is to use TIFFSetWarningHandler(NULL). You may lose some more important warnings if you do that, but it's generally safe (they're only warnings, after all). It would be better to write a warning handler that filters out the uninteresting warnings and only shows the rest.

Also note that it is a global setting, not per-TIFF.

Another idea is to use tif_unix.c instead of tif_win32.c, it works too with most Windows versions and compilers. Then the warnings will be written to stderr (and probably lost in a GUI-based program).

Gerben Vos.