Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1705 File access is denied
Message
From
03/08/2003 03:17:07
 
 
To
03/08/2003 02:58:32
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00816270
Message ID:
00816271
Views:
22
>I have a procedure which contains the following code:
>
>do while not eof()
> mxx=track+dist
> copy to xA while track+dist==mxx and not eof()
> do calcA
>enddo
>
>***************
>procedure calcA
>***************
>select 0
>use xA
>copy to x2
>(... and then it continues until ...)
>use in x2
>delete file x2.dbf
>
>Problem : after doing several hundred calls to the procedure calcA, it gives me the 1705 error "File access is denied", indicating I am trying to write to a write protected file.
>
>It runs perfectly on one computer with ME installed, however when I try to run it on my new 2003 Compaq notebook computer with Win2000 Professional, the problem appears at the line "copy to x2". The point in the do while loop at which it stops is purely random, varying each time. Looking in the debugger Watch window, both file('x2.dbf') and used('x2') return false.
>
>The machine is not connected to a network and the program is a single user application. The Foxpro installations on both machines are VFP 6 and both are standard configurations.
>
>I'd appreciate help in solving this puzzle.

Have you applied the latest W2K Service Pack (4)? My understanding is that as of SP3 (and later) some file system/caching issues were resolved.

Also, if you have any antivirus program running, try disabling it to see if that makes a difference.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform