Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
COPY FILE then ERASE causes File access denied.
Message
De
29/08/2007 09:53:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01249989
Message ID:
01251135
Vues:
18
Hi Sergey,

Thanks for the reply. I am loaded with work and didn't get a chance to check my post sooner. The link you provided looks like what I would want to do on that particular server. I will update this thread on the results.

>Try to disable opportunistic locking on the server as shown in MSKB #296264.
>
>
>>Hi all,
>>Anyone experienced this problem before? We use Dynazip to create zip files from our application. Although, I think the problem does not have something to do with Dynazip, I am including it in the code snippet to hopefully, illustrate the problem clearly.
>>
>>The problem occured when the server was upgraded from Windows 2000 to 2003. The rights are all relaxed including the Data Execution Protection (DEP) setting of the server. On the 2000 server, the error: "File access is denied" does not occur at all and the code hasn't been modified in years. However, our application provides an option to RETRY in our error handler and doing so after a few seconds will allow the ERASE command to work properly.
>>
>>It seems that the COPY FILE has not totally released the lock on the source file when the ERASE command was executed. I will probably embed an INKEY(3,"HM") before the ERASE to allow a 3 seconds wait.
>>
>>Aside from the INKEY() solution, is there any particular place I should look at the server?
>

ramil
~~ learning to stand still
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform