Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: tushar
  Where is tushar?
 Panaji
 India
 tushar
 To: Terry Parkinson
  Where is Terry Parkinson?
 Litchfield
 New Hampshire - United States
 Terry Parkinson
 Tags
Subject: RE: sporadic 'file access denied' error
Thread ID: 197492 Message ID: 197493 # Views: 32 # Ratings: 0
Version: Visual FoxPro 9 Category: Databases, Tables and SQL Server
Date: Friday, October 03, 2008 6:53:47 PM         
   


> I import 30+ files from an old DOS Business Basic system every day and convert them to VFP files.
> At the end of the import I have a 'wrapup' program to handle little details as I prepare to install the final system.
> After months of no problems, in the last week I've gotten two 'file access denied' errors in this last program.
> The program runs on 5 different standalone computers as people update from the files on a daily floppy disk.
> Two errors, each involving different files. No DE, no buffering, just a simple PRG.
>
> Here's the code for one of the errors.
>
>
> IF !USED('invproduction')
> 	USE invproduction IN 0
> ENDIF
> SELECT invproduction
> REPLACE ALL lbooked_prod WITH .t.
> REPLACE ALL drec_activity WITH dprod_dt
> USE

> |
> | other code, other files
> |
>
SELECT distinct dprod_dt FROM invproduction INTO CURSOR crdt ORDER BY dprod_dt

> produces error (once)
>
> Is this perhaps some kind of timing issue? Should I issue periodic FLUSHes in the code?
> I can't reproduce the error, so it's hard to know the best approach!
>
>
> Terry

Try by using UPDATE instead of REPLACE. The command will be

UPDATE invproduction SET lbooked_prod=.T.,drec_activity=dprod_dt

Regards
Tushar



COMPLETE THREAD
sporadic 'file access denied' error Posted by Terry Parkinson @ 10/3/2008 6:46:33 PM
RE: sporadic 'file access denied' error Posted by tushar @ 10/3/2008 6:53:47 PM
RE: sporadic 'file access denied' error Posted by Terry Parkinson @ 10/3/2008 11:33:11 PM
RE: sporadic 'file access denied' error Posted by Anil Sharma @ 10/3/2008 6:56:22 PM
RE: sporadic 'file access denied' error Posted by Terry Parkinson @ 10/3/2008 11:36:22 PM