T
Tony Liu
Hi, how can I create multiple new file handles of a file without having to
share to file to the other processes?
I have a file that will be accessed by multiple threads in my application,
each time a thread try to do something with the file, the thread will create
a new file handle. However, if I specify FileShare.ReadWrite, other process
can also open that file. I tried FileShare.Inheritable but it doesn't work.
The reason I needs to create a new file handle each time is because those
different threads will be working on a different area of the file and I just
can't share a single master file handle.
Thanks in advance
Tony
share to file to the other processes?
I have a file that will be accessed by multiple threads in my application,
each time a thread try to do something with the file, the thread will create
a new file handle. However, if I specify FileShare.ReadWrite, other process
can also open that file. I tried FileShare.Inheritable but it doesn't work.
The reason I needs to create a new file handle each time is because those
different threads will be working on a different area of the file and I just
can't share a single master file handle.
Thanks in advance
Tony