How do I find out what process Id and thread id / name has a file open
- by peter
Hi All,
I am using C# in an application and am having some problems with a file becoming locked.
The piece of code does this,
while (true)
{
Read a packet from a socket (with data in it to add to the file)
Open a file
Writes data to it
Close a file
}
But in the process the file becomes locked. I don't really understand how, we are…