Skip to content

Review & Better Manage FileSystemWatchers #6796

@mitchelsellers

Description

@mitchelsellers

File Reference - You have to copy and paste

https://github.com/dnnsoftware/Dnn.Platform/blob/daa09c241dd1fc304b6f4400b79992f2ee444f9c/DNN Platform/Library/Services/Installer/Util.cs#L717

Problem

The FileSystemWatcher class implements IDisposable, and has many unmanaged resources internally. Any usage of a FileSystemWatcher needs to be monitored to ensure that it is disposed of properly.

This specific section of code in the installer has been identified in logs as causing a crash.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions