B
Brett
Say I have a DLL with a method that does a file write. I call this DLL from
an application and pass the file path and name to the FileWrite() method
inside the DLL. The application is multi threaded so that two or more
threads may be trying to write to the file at once. If one thread is
writing then another comes along and trys to write, it will get a file in
use error.
Should SyncLock (or ReaderWriterLock) be used inside the application,
surrounding the FileWrite() call or inside the DLL's FileWrite() method?
Thanks,
Bretrt
an application and pass the file path and name to the FileWrite() method
inside the DLL. The application is multi threaded so that two or more
threads may be trying to write to the file at once. If one thread is
writing then another comes along and trys to write, it will get a file in
use error.
Should SyncLock (or ReaderWriterLock) be used inside the application,
surrounding the FileWrite() call or inside the DLL's FileWrite() method?
Thanks,
Bretrt
