- 2005.12.03 15:16 "Re: [Tiff] Call for OJPEG test images", by Andrey Kiselev
- 2005.12.21 20:51 "RE: [Tiff] Oddball Old Style JPEG image", by Jason Frank
-
2006.01.11 08:48 "Re: Re: [Tiff] Problem closing TFF file : First Chance exception", by Bogoss
- 2006.01.10 16:19 "[Tiff] Problem closing TFF file : First Chance exception", by Bogoss
- 2006.01.11 14:58 "RE: [Tiff] Problem closing TFF file : First Chance exception", by
2006.01.10 16:34 "RE: [Tiff] Problem closing TFF file : First Chance exception", by
I'd guess you're getting a NULL back from TIFFOpen, but then you're passing it to TIFFClose (which is not prepared to handle it), and it goes downhill from there.
Try adding a check, for example:
TIFF * in = TIFFOpen("temp.tif", "r");
if (!in)
{
printf("oh noes!\n");
exit(1);
}
TIFFClose(in);
-----Original Message-----
From: tiff-bounces@lists.maptools.org [mailto:tiff-bounces@lists.maptools.org]On Behalf Of Bogoss
Good afternoon Everyboby,
My name is Thibaut, i’m french. 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:
In = TIFFOpen(“temp.tif”,”r”);
TIFFClose(in);
I’ve an error on TIFFClose: First-Chance exception in test.exe (NTDLL.DLL): 0x0000008: Invalid Handle
I already search in the libtiff mailing list archive but i don't find real solution for my problem
Can you help me please?
Thanks
Best regardsThibaut