Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-301

MSVC 8.0, log4cxx from dll = memory leaks messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 0.11.0
    • None
    • None
    • None
    • MSVC 8.0 SP1, MFC, log4cxx from SVN, r673295

    Description

      Steps:

      1. Create mfc exe, use log4cxx:

      PropertyConfigurator::configure(LOG4CXX_FILE( path ));
      LOG4CXX_INFO ( Logger::getRootLogger(), _T("testleaks.exe _tmain") );

      OK, no memory leak

      2. Create dll, use log4cxx:

      extern "C" __declspec ( dllexport )
      void testlog()
      {
      LOG4CXX_INFO ( Logger::getRootLogger(), _T ( "logdlltest.dll testlog()" ) );
      }

      3. from exe call testlog():

      PropertyConfigurator::configure(LOG4CXX_FILE( path ));
      LOG4CXX_INFO ( Logger::getRootLogger(), _T("testleaks.exe _tmain") );
      testlog();

      4. Run exe (Debug configuration) and see after finish in Output MSVC 316 memory leak messages

      attachment - Test solution (exe and dll)

      Attachments

        1. log4cxxleaks.zip
          1.01 MB
          Alexey Kirjushkin

        Activity

          People

            carnold@apache.org Curt Arnold
            odissey Alexey Kirjushkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: