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

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