logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yoshinori_Watan...@cii.csk.co.jp
Subject memory leak
Date Sun, 27 Feb 2005 17:43:12 GMT
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




Mime
View raw message