[ 
https://issues.apache.org/jira/browse/LOG4NET-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ron Grabowski updated LOG4NET-158:
----------------------------------

    Attachment: Release_handles_in_ConfigureAndWatch.patch

Made ConfigureAndWatchHandler implement IDiposable in order to properly dispose 
of handles held by the FileSystemWatcher and Timer classes.

> XMLConfigurator.ConfigureAndWatch() leaks resources if called multiple times
> ----------------------------------------------------------------------------
>
>                 Key: LOG4NET-158
>                 URL: https://issues.apache.org/jira/browse/LOG4NET-158
>             Project: Log4net
>          Issue Type: Bug
>          Components: Other
>    Affects Versions: 1.2.10
>         Environment: Windows Server 2003, Windows XP
>            Reporter: Strategic Insurance Software
>         Attachments: Release_handles_in_ConfigureAndWatch.patch
>
>
> If XMLConfigurator.ConfigureAndWatch() is called multiple times within an 
> AppDomain, each time it is called it leaks a Win32 file  handle (possibly 
> from a FileSystemWatcher object not being disposed?) to the folder containing 
> the previous configuration file it was watching.
> Desired behavior would be to release the handle to the folder containing the 
> previous configuration file.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to