[delphizip] Re: Lock left in temp directory

  • From: "Javier Molina" <numeropi@xxxxxxxxxxxxx>
  • To: <delphizip@xxxxxxxxxxxxx>
  • Date: Tue, 19 Mar 2002 16:25:39 +0100

I guess you are under WinNT / 2k / XP, because Win9x won't complain
if you delete the directory.

Try to use ChDir to any other directory (for example, your application exe
directory) after unzipping, this should solve your problem.

Hope that helps

----- Original Message ----- 
From: "Randall Sell" <randallsell@xxxxxxxxx>
To: <delphizip@xxxxxxxxxxxxx>
Sent: Tuesday, March 19, 2002 4:15 PM
Subject: [delphizip] Lock left in temp directory


> Hello all,
> 
> I am using Delphi3.02, ZipMaster 1.45 (can't ugrade do to other
> complications)
> 
> My problem is that ZipMaster is not releasing some sort of file sharing
> lock on the directory I build under the temp directory.
> 
> All my files are extracted to this directory. After I do my processing
> on these files, I want to delete those files and the tmp directory I
> created to hold those files.
> 
> I don't do any explicit loading or unloading of the zip DLLS, but as a
> safety, I called 
>   ZipMaster.Unload_Unz_Dll;
>   ZipMaster.Unload_Zip_Dll;
> 
> So I know for sure the DLLs are unloaded. but I still can't remove the
> directory that I created. I have tested and I know for sure that it is
> TZipMaster that is causing the problem - if I don't unzip, I can nuke
> the directory fine.
> 
> anyone have any ideas how I can work around my problem?
> 
> many thanx in advance,
> Randall Sell
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> 
> 

Other related posts: