I have a VB6 program running on Windows 7. It is copying a large number of files and sometimes FileCopy
fails with an access violation (between every 60 and 500 files).
I cannot reproduce it using a single file, only during such mass-copying operations this problem happens.
It makes no difference, if source/target are on hard disks, network shares or CD-ROMs.
What could trigger this problem?
EDIT: My question might be a little bit convoluted, so here's some more data:
Run 1:
- Start copying 5.000 files
- Access violation on file #983
- Access violation on file #1437
- Access violation on file #1499
- Access violation on file #2132
- Access violation on file #3456
- Access violation on file #4320
- Done
Run 2:
- Start copying 5.000 files
- Access violation on file #60
- Access violation on file #3745
- Done
Observations
- The affected files are always different
- The number of affected files tends to decrease if the same file batch is copied multiple times in succession.
- Running as Administrator makes no difference
- The application has read/write access to all necessary file system objects
- This problem happens on Windows 7 workstations only!