Hi Tiraman,
First of all, I would like to confirm my understanding of your issue.
From your description, I understand that when you use the File.CreateFile
and then write to the file, you got the error message "file ... is being
used by another process error".
Have I fully understood you? If there is anything I misunderstood, please
feel free to let me know.
I agree with Herfried's suggestion. In addition, I think you may also try
to use the FileMon tool to monitor the specified the file created by
File.CreateFile to see what process is access the specified file.
Best regards,
Peter Huang
Microsoft Online Partner Support
Get Secure! -
www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.