G
Guest
Two processes query a disk file's file size, concurrently and frequently (in
a loop), using the following lines:
FileInfo objFileSize = new FileInfo(fileToCheck);
outputFileSize = objFileSize.Length;
Only one of them writes to the file. And the file size is keeping increasing
all the time.
However, a stange behavior led us to suspect that though the file size is
increasing, one of the process monitoring its changes doesn't catching it
sometimes?
Any idea?
Thanks!
a loop), using the following lines:
FileInfo objFileSize = new FileInfo(fileToCheck);
outputFileSize = objFileSize.Length;
Only one of them writes to the file. And the file size is keeping increasing
all the time.
However, a stange behavior led us to suspect that though the file size is
increasing, one of the process monitoring its changes doesn't catching it
sometimes?
Any idea?
Thanks!