Detected memory leaks!

Dumping objects ->

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(156) : {4873} normal block at 0x069959A0, 26 bytes long.

Data: <x               > 78 C5 9C 0F 09 00 00 00 09 00 00 00 01 00 00 00 

{97} client block at 0x003F9D30, subtype c0, 64 bytes long.

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral – a CDynLinkLibrary object at $003F9D30, 64 bytes long

f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\dumpcont.cpp(23) : atlTraceGeneral – a CDynLinkLibrary object at $003F9D30, 64 bytes long

Object dump complete.

 

Causes of memory leakage:

BOOL CSmartApp::InitInstance()

{

m_hLangDLL = ::LoadLibrary(_T(“LangEnglish.dll”));

}

Dynamic libraries are not released.

int CSmartApp::ExitInstance()

{

if (NULL ! = m_hLangDLL) { AfxFreeLibrary(m_hLangDLL); // Do not use ::FreeLibrary() function, memory leak}

}