In some apps that open and close many times the same file (for example within a loop) I get randomly an error 70 "Permission denied" on Open (for output or append).
It seems that sometimes the "close" statement isn't immediately executed by the operating system, so the next "open" find the file still "opened".
No doubt the code is correct, as it works without errors most of times.
Trapping error 70 and resuming the same statement after a small pause, the statement works fine in most cases ... but this of course slow down the application.
Files opened/closed are on a network disk, but are accessed only by a single application.
Any idea about the causes of this problem?
Thanks
It seems that sometimes the "close" statement isn't immediately executed by the operating system, so the next "open" find the file still "opened".
No doubt the code is correct, as it works without errors most of times.
Trapping error 70 and resuming the same statement after a small pause, the statement works fine in most cases ... but this of course slow down the application.
Files opened/closed are on a network disk, but are accessed only by a single application.
Any idea about the causes of this problem?
Thanks
Comment