I have a client running multiple copies of the exact same program on a network in multiple folders (different data sets). The program in one of the folders has been experiencing C0000005 and C00000FD errors.
I first tried the obvious by deleting/recreating the indexes but the problem persisted.
I then suspected data corruption and tried copying the data files over to a new location with the following simple program:
SET EXCLUSIVE OFF
SET DELETED ON
SET SAFETY OFF
filecnt = ADIR(aFilelist, '*.dbf')
FOR xx=1 TO m.Filecnt
m.filename = aFilelist(xx,1)
? m.filename
USE (m.Filename)
COPY TO ('temp\' + m.Filename)
use
ENDFOR
WAIT WINDOW [Finished!]
The above program worked until it got to a file that was 24 MB. It counted up the records, gave the message that the records were copied, hung up for a while, and then came back with a "Error writing to file" message. At this point I'm also unable to browse the open table. I get an "Error reading file" message. Display status confirms that VFP thinks the file is still open. If I re-USE the file, I can then browse it.
This sounds like some kind of weird network error. The client's network is running TCP/IP. Does VFP 6/7 run fine with TCP/IP? Is NetBios required for VFP? Any other suggestions? TIA.
Later...
/< /-/