File locking problems??
-
Hi, I am having problems with file locking. It seems some kind of lock remains on a file even after it has been closed. I have tried both C-library routines (fopen, fclose ... ) and native windows routines (CreateFile, CloseHandle.. ) but in both cases locking remains, and you can rename the file only after program has been closed. Routine where this happens contains some Oracle ProC-code and seems to start some own threads. Could they be the culprit? Anybody else have experience with this kind of thing?
-
Hi, I am having problems with file locking. It seems some kind of lock remains on a file even after it has been closed. I have tried both C-library routines (fopen, fclose ... ) and native windows routines (CreateFile, CloseHandle.. ) but in both cases locking remains, and you can rename the file only after program has been closed. Routine where this happens contains some Oracle ProC-code and seems to start some own threads. Could they be the culprit? Anybody else have experience with this kind of thing?
Use the Handle utility from www.sysinternals.com[^] to see what process has the file open.
"Take only what you need and leave the land as you found it." - Native American Proverb