Skip to content

FileNotFoundException on connect #10

@E-Mans-Application

Description

@E-Mans-Application

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()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions