Unable to Delete = File In Use
Posted: 22 Jun 2014 12:11
For approximately eight weeks now, new builds of XY can result in a version of XY which will create a file handle of a file copy and then the handle doesn't get deleted but unassociated with a non-existent process. Updating to a newer version of XY will sometimes result in the problem apparently going way, yet to return in a future update.
Tonight, I've spent the past couple of hours trying to find the source of the problem and it always associated with XY (and / or XYcopy). My environment is Windows 7 64-bit. It can occur as simple as making a backup copy of an executable, then immediately (or later, same XY session) attempting to delete the file. Always results in the "file in use" message. Open a command prompt at the directory location, unload XY, and delete the file manually always removes the file. However, if you were to attempt to unload XY and then reload XY to delete the file, the "file in use" message occurs.
Using Microsoft / Sysinternals Process Explorer to look at what has a handle to the file results in XY as the source, and in some cases for a single operation there may be half a dozen handles for the same file -- it's not consistent and what causes "more" to exist seems random, regardless of one or more the result is the same, unable to delete.
What brings me to post my concern now, rather than weeks ago, is, previously, the problem wasn't so stubborn as it is with the current 14.20.0203 variant. Typically there's absolutely no reason why I need to perform a warm or cold boot for months on end. However, tonight, I've done it a dozen times to find the culprit.
Clarification:
The only executable that will not delete are WinRAR SFX Executables.
Tonight, I've spent the past couple of hours trying to find the source of the problem and it always associated with XY (and / or XYcopy). My environment is Windows 7 64-bit. It can occur as simple as making a backup copy of an executable, then immediately (or later, same XY session) attempting to delete the file. Always results in the "file in use" message. Open a command prompt at the directory location, unload XY, and delete the file manually always removes the file. However, if you were to attempt to unload XY and then reload XY to delete the file, the "file in use" message occurs.
Using Microsoft / Sysinternals Process Explorer to look at what has a handle to the file results in XY as the source, and in some cases for a single operation there may be half a dozen handles for the same file -- it's not consistent and what causes "more" to exist seems random, regardless of one or more the result is the same, unable to delete.
What brings me to post my concern now, rather than weeks ago, is, previously, the problem wasn't so stubborn as it is with the current 14.20.0203 variant. Typically there's absolutely no reason why I need to perform a warm or cold boot for months on end. However, tonight, I've done it a dozen times to find the culprit.
Clarification:
The only executable that will not delete are WinRAR SFX Executables.