I currently have a CF-enabled page running along with an
administrative page which is used to manage files and directories
being shown by the main page. Running latest version of CFMX on a
Windows 2003 server. I've noticed, on occasion, when I try to
delete a file using the admin app, I receive an error paraphrased
as "You cannot delete file C:\myDirectory\myPicture.jpg for some
unknown reason". A second later when I try again it works. I have
come to the realization that the two apps are butting heads when it
comes to system file locks. While the main page is serving a
picture to be displayed, it understandably locks the file for a
time (seems longer than it really needs to, though). The admin page
comes along and wants to delete the same file and can't because the
other page has it locked down in the system. Not using
<CFLOCK> tag anywhere in the code.
My question is this: Is there a way that my admin page can
wait in a loop until the file lock is released by the main page in
order to delete the file without ever throwing an error?
I cannot seem to find anything on this but have noticed
others mention this problem. Any assistance appreciated.