AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

1998.05.25 17:17 "Strange thing...Cannot delete files.", by Mikael Suvi
1998.05.25 19:18 "Re: Strange thing...Cannot delete files.", by Gerben Vos
1998.05.26 08:50 "Re: Strange thing...Cannot delete files.", by Mikael Suvi
1998.05.26 08:56 "Re: Strange thing...Cannot delete files.", by Tim Shaporev
1998.05.25 22:55 "Re: Strange thing...Cannot delete files.", by Masanori Kanda

1998.05.25 17:17 "Strange thing...Cannot delete files.", by Mikael Suvi

Help!!

I cant delete image files after they have been opened. here..

------------------------
#include <windows.h>
#include <tiffio.h>

void main(void)
{

 TIFF *tif;

 tif = TIFFOpen("c:\\images\\toit3.tif","r");
 TIFFClose(tif);

 DeleteFile("c:\\images\\toit3.tif");      \\ It wont delete the file.

}
------------------------

At that point I even tried to delete manually but says its locked or something....Only after the program exited i was able to kill it. How to delete the file after I close it? Programming under win95 and with vc++5.0

mike