-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Hello,
A FileNotFound Exception is thrown when I call Connect on the EventWatcher (the code is VB.NET not C#):
Dim filewatcher As New EventWatcher() With {
.OnRenameOrMove = AddressOf FileRenamed,
.OnChange = AddressOf FileChanged,
.OnCreate = AddressOf FileChanged,
.OnDelete = AddressOf FileDeleted,
.Tag = path,
.AggregateEvents = True
}
filewatcher.Connect() 'throws exception
filewatcher.WatchPath(path) 'not reached
System.IO.FileNotFoundException
HResult=0x80070002
Source=mscorlib
Stacktrace=
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at CenterDevice.MiniFSWatcher.FilterConnector.Connect()
atCenterDevice.MiniFSWatcher.EventWatcher.Connect()
[...]
à System.Threading.ThreadHelper.ThreadStart_Context(Object state)
à System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
à System.Threading.ThreadHelper.ThreadStart()