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)