-
Notifications
You must be signed in to change notification settings - Fork 267
Closed
Labels
area: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality
Description
Hi,
I just stumble upon the fact, that IFileSystemWatcher is not IDisposable, but all its Implementation are. When I retrieve an instance from IFileSystemWatcherFactory, I have no hint that I have to dispose this instance. Which can lead to memory leaks. Given that FileSystemWatcher is a system resource, it might also be there after my program finished.
For me there are two solution to this problem:
- Make IFileSystemWatcher IDisposable (my preferred solution).
- Add a Release method to IFileSystemWatcherFactory, that handles the dispose call for me.
sandrock
Metadata
Metadata
Assignees
Labels
area: coreIssues that address the core abstractions & the wrappersIssues that address the core abstractions & the wrappersstate: ready to pickIssues that are ready for being worked onIssues that are ready for being worked ontype: bugIssues that describe misbehaving functionalityIssues that describe misbehaving functionality