AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
April 1998

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1998.04.06 18:42 "libtiff isn't closing all of the file handles on NT ?", by Chris Griffin
1998.04.06 23:24 "Re: libtiff isn't closing all of the file handles on NT ?", by Masanori Kanda
1998.04.07 00:44 "Re: libtiff isn't closing all of the file handles on NT ?", by Dean Grimm
1998.04.07 13:41 "Re: libtiff isn't closing all of the file handles on NT ?", by Jim White
1998.04.07 15:40 "Re: libtiff isn't closing all of the file handles on NT ?", by Rex Jolliff
1998.04.07 17:13 "Re: libtiff isn't closing all of the file handles on NT ?", by Gerben Vos

1998.04.07 13:41 "Re: libtiff isn't closing all of the file handles on NT ?", by Jim White

Chris,
	I have had this exact problem on NT.  I have a program that needs to
open many TIFF files and eventually it hangs the system.  I wrote a
small test program that repeatedly opens and then closes the same TIFF
file.  Foe each open/close it looks like there are 3-5 handles left
around.  I have looked into this a little bit and I've found nothing
obvious. One possible place it in the routine _tiffMapProc where it
calls MapViewOfFile but I'm not sure.  I've found no good work around
and I'd be interested in any information too.
					Jim White

Chris Griffin wrote:
> 
> Hi,
> 
> I am using LIBTIFF from within a DLL to read and write TIFF images on a
> Windows NT machine.   I am finding that after I read a file, I can no longer
> write to that file, and I also cannot delete it at the OS level until my
> application
> has exited.
> 
> This leads me to beleive that TIFFClose is not properly closing the file.
> I rebuilt the library with debugging flags and ran the whole thing in
> a debugger, and the call to CloseHandle (in tif_win32) is returning a 1,
> which indicates that it succeeded.
> 
> So now I'm completely stumped!  Has anyone else seen this
> problem?
> 
> Thanks,
> Chris