2006.01.11 08:48 "Re: Re: [Tiff] Problem closing TFF file : First Chance exception", by Bogoss
I think it's not the problem because my tiff file is correctly open.
It's correctly open because i can do for example (to know the tiff file resolution):
I obtain the good result (196) in "resolution"
Furthermore, i added your example:
in = TIFFOpen(“temp.tif”,”r”);
When i debug, it's specified that TIFF pointer "in" is not NULL and i have the same error on the instruction TIFFClose: First-Chance exception in test.exe (NTDLL.DLL): 0x0000008: Invalid Handle
Have you an other idea?
> Message du 10/01/06 17:46
> De: "Joris" <email@example.com>
> A: firstname.lastname@example.org, email@example.com
> Copie à:
> Objet: Re: [Tiff] Problem closing TFF file: First Chance exception
> Please mail plain text messages only to mailing lists.
> Bogoss wrote:
> > I try to use libtiff library with a
> > Console Win32 Project and I’ve a problem to close an existing TIFF
> > file.
> > I just do:
> > TIFF *in;
> > In = TIFFOpen(“temp.tif”,”r”);
> > TIFFClose(in);
> > I’ve an error on TIFFClose: First-Chance exception in test.exe
> > (NTDLL.DLL): 0x0000008: Invalid Handle
> Chances are this is because you've never received a proper TIFF* in the
> first place as a return of TIFFOpen, because the "temp.tif" wasn't
> found. Add an error check, like this.
> TIFF *in;
> In = TIFFOpen(“temp.tif”,”r”);
> if (In==NULL)
> /* some error occured */
> Probably things work better if you pass a full filename with complete
> For more information on TIFFOpen, including error return value, see
Joris Van Damme
Download your free TIFF tag viewer for windows here: