Hi Roland ..
At weekend i was a little bit curious ... so i taked a look into Source of Disparity ...
>Monitor.cs ... As i see ... you experiment with System.IO.FileSystemWatcher
How does your experiemnts go !?
Somewhere in the past i experimented .. not with NET but with WMI-EventSinks, there is one Eventsink for Filechanges ... (fine is .. you can watch changes on another machine)
Its another API but i think it use the same feature of windows ...
My results where, if i remember right, that my Eventhandling (only VBA) was to slow ...
If i copied a small amount of files it worked ...
But Moving/copying 100 ore more files, resulted in massive loss of changes ....
I now overvied MSDN ... There is an internalBuffer for the events .. it can overflow and this result in loss of events ... an OnError is then raised ... and you can set the BufferSize in 4K steps but it use NonPagedMemory (its not swapped) so its better to keep it as small as possible.
I dont now of which Stadium (how old) the codefragments in v0.2 are but i missed the capturing if errors (BufferOverflow) and IncludeSubdirectories isnt set.
The handling of events is TimeCritical ... how do you plan to implement ...
Write changes to log .. and make parity asynchron by another thread, activated by PerfCounter/CpuUsage ore somthing simmilar ?
And how can we be shure that we dont miss events ... or to be exact ... what to do if Bufferoverflow occures ... We know that we loosed filechanges but not for which files ?
So we need manual scan ... so its not LIVE ...
How much live do you think should live be ?
I have the feeling that safe Real-Live can only be done by Hooks to filesystem like Rootkits or AV-Software do.
And if live means real live ... we need VolumeShadowCopy ...
But VolumeShadowCopy of 6 ore more drives at same time .... hmmmm !?
And for me and some others then it start to be complicated ...
I dont know how VolumeShadowCopy works wit As FolderMountedVolumes and CrossDisk hardlinks ... !
I wrote some posts before that i dont need the Life Feature ... but that dont mean that its not worth to think about ways, how it can be realized ...