You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-user@logging.apache.org by Yo...@cii.csk.co.jp on 2005/02/27 18:43:12 UTC

memory leak

I found memory leak.
Our server is down after several hour.
Fix it, please.

MS-WindowsXP
VisualStuid.NET (C++7.0)
Log4cxx 0.9.7


[new Project]
VisualC++project/Win32/ Win32 Console Project
--------------------------------------------------------------------------------
#include "stdafx.h"
#include <log4cxx/logger.h>
#include <log4cxx/basicconfigurator.h>
#pragma comment(lib, "/log4cxx/log4cxx.lib")

static log4cxx::LoggerPtr _logger(log4cxx::Logger::getLogger("LeakTest"));

int _tmain(int argc, _TCHAR* argv[])
{
  log4cxx::BasicConfigurator::configure();

      while (true) {
            LOG4CXX_WARN(_logger, "12345, 3.14159, ABCDE");
      }
      return 0;
}

Regards.
Yoshinori Watanabe




Re: memory leak

Posted by Curt Arnold <ca...@apache.org>.
Sorry about the slow response.  This error has been reported on log4cxx 
0.9.7, but I do not believe (but haven't confirmed) that it exists with 
the current CVS HEAD.  A new release is long overdue and at this point 
bug reports against 0.9.7 are not very useful since the CVS HEAD is 
radically changed.