I implemented FileSystemWatcher
in a windows forms application. Changed event is working when I open a file (say pdf-1) for the first time. But when I open the same file for the second time within short span of time, changed event is not firing. But it is firing when I open another file (say pdf-2). Again the changed event is firing for the first file (pdf-1) only if I open it after some time (say 1 or 2 hours).
I set the InternalBufferSize
to 16KB and the NotifyFilters
used are LastAccess
, LastWrite
, FileName
and DirectoryName
.
I am unable to find out the issue. Can anyone help me out?