Received: from [192.48.153.1] by phillip.thumbsplus.com (NTMail 3.03.0017/7.aaxh) with ESMTP id pcrews for <pcrews@cerious.com>; Mon, 6 Apr 1998 16:54:27 -0400
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) by sgi.sgi.com (980309.SGI.8.8.8-aspam-6.2/980304.SGI-aspam) via ESMTP id NAA12045; Mon, 6 Apr 1998 13:39:09 -0700 (PDT)
	mail_from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost)
	by cthulhu.engr.sgi.com (980205.SGI.8.8.8/970903.SGI.AUTOCF) id LAA8496303
	for tiff-list;
	Mon, 6 Apr 1998 11:42:50 -0700 (PDT)
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37])
	by cthulhu.engr.sgi.com (980205.SGI.8.8.8/970903.SGI.AUTOCF)
	via ESMTP id LAA6764891
	for <tiff-relay@cthulhu.engr.sgi.com>;
	Mon, 6 Apr 1998 11:42:48 -0700 (PDT)
Received: from turing.mathworks.com (turing.mathworks.com [144.212.100.12]) by sgi.sgi.com (980309.SGI.8.8.8-aspam-6.2/980304.SGI-aspam) via ESMTP id LAA22704
	for <tiff@sgi.com>; Mon, 6 Apr 1998 11:42:46 -0700 (PDT)
	mail_from (cgriffin@mathworks.com)
Received: from griffin ([144.212.21.218])
	by turing.mathworks.com (8.8.5/8.8.5) with SMTP id OAA05290
	for <tiff@sgi.com>; Mon, 6 Apr 1998 14:42:37 -0400 (EDT)
Message-Id: <3.0.5.32.19980406144235.00ba0200@pop.mathworks.com>
X-Sender: cgriffin@pop.mathworks.com
X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32)
Date: Mon, 06 Apr 1998 14:42:35 -0400
To: tiff@sgi.com
From: Chris Griffin <cgriffin@mathworks.com>
Subject: libtiff isn't closing all of the file handles on NT ?
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk


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


