logging-log4net-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emil Vladov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (LOG4NET-158) XMLConfigurator.ConfigureAndWatch() leaks resources if called multiple times
Date Thu, 19 Jun 2008 12:03:46 GMT

    [ https://issues.apache.org/jira/browse/LOG4NET-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606342#action_12606342
] 

Emil Vladov commented on LOG4NET-158:
-------------------------------------

I've added comment to a similar cxx issue:

https://issues.apache.org/jira/browse/LOGCXX-166

but as it is closed not sure if anyone will read it :)
Basically the same never destroyed watcher causes access violations under Win32 as the watcher
thread isn't stopped after the log4cxx DLL unloads.

> 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
>             Fix For: 1.2.11
>
>         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.


Mime
View raw message