Hi,
I am using a FileSystemWatcher to monitor recursively file creation in a directory. Because there are really a lot of files, I wanted to increase the InternalBufferSize. I googled and found that if the buffer is not high enough on huge directories, it can actually miss some events.
So I simply do:
fsWatcher.InternalBufferSize = 32768;
This cause an argumentexception.
I put a try/catch around the statement, so no error pops-up but the stange thing is that when I interrogate the InternalBufferSize, it has actually been set to 32768.
What am I missing here?
AD AUGUSTA PER ANGUSTA
Thierry
I am using a FileSystemWatcher to monitor recursively file creation in a directory. Because there are really a lot of files, I wanted to increase the InternalBufferSize. I googled and found that if the buffer is not high enough on huge directories, it can actually miss some events.
So I simply do:
fsWatcher.InternalBufferSize = 32768;
This cause an argumentexception.
I put a try/catch around the statement, so no error pops-up but the stange thing is that when I interrogate the InternalBufferSize, it has actually been set to 32768.
What am I missing here?
AD AUGUSTA PER ANGUSTA
Thierry