We have the following line of Visual FoxPro 9 code
INDEX ON batchno TO temp FOR !DELETED()
We are having an issue where a FoxPro compiled application will run, try to enumerate the contents of a folder, look for a temp file, create the temp file (database called temp.idx), and then move on to further processing to reference the temporary data.
This seemed to work fine when we were on a Novell directory server with NFS file system. However, now that we have moved to MS Active Directory server with NTFS file system, we are having an issue such that the compiled FoxPro application is not able to write to the file anymore.
Process Monitor shows the following output when the error occurs:
Operation: CreateFile
Result: SHARING VIOLATION
Desired Access: Generic Read/Write
Disposition: OverwriteIf
Options: Synchronous IO Non-Alert, Non-Directory File
Attributes: N
ShareMode: None
AllocationSize: 0
I was curious if there was an alternate way to approach this situation where we do not have to worry about the application keeping the file in use (presumably read) while it attempts to write the file, where is subsequently fails since it is already in use.