AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.11.12 21:50 "[Tiff] Closing tiff files", by Gary L. Globus
2003.11.13 20:35 "[Tiff] Closing tiff files", by Phillip Crews
2003.11.14 12:55 "RE: [Tiff] Closing tiff files", by Gary L. Globus
2003.11.17 18:46 "RE: [Tiff] Closing tiff files", by Gary L. Globus
2003.11.17 19:01 "RE: [Tiff] Closing tiff files", by Phillip Crews
2003.11.17 19:20 "RE: [Tiff] Closing tiff files", by Gary L. Globus

2003.11.17 19:01 "RE: [Tiff] Closing tiff files", by Phillip Crews

Gary,

TIFFOpen(filename, "ru");

The 'u' will prevent libtiff from mapping the original file into the process's address space, and it will use regular I/O instead.

The handle I found leaking on ME was one of the file mapping handles (in tif_win32.c, IIRC). Libtiff was closing all handles appropriately; the bug was due to something within ME. I haven't seen the same problem on XP, and I personally haven't had any reports of problems opening networked TIF files from other applications.

Note: I'm using libtiff version 3.5.6, and not 3.6.0, so it's possible there is some other change.

Kind regards,
Phillip