请教各位高手
vs2008创建向导按缺省设置,创建一个空项目,在App类的释构函数中加入
~CTest2App(){ _CrtDumpMemoryLeaks();}
其它什么代码都没添加,然后运行--退出,这样,输出报告一堆的内存泄漏,请问各位高手这是怎么一回事?难道MFC内部存在大量的内存泄漏??
Detected memory leaks!
Dumping objects ->
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2669} normal block at 0x00E246B0, 124 bytes long.
Data: < F p > 00 DE E0 00 C0 46 E2 00 70 DE E0 00 FA 1B 1D 00
{2574} client block at 0x00E25410, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E25410, 112 bytes long
{2573} client block at 0x00E25360, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E25360, 112 bytes long
{2572} client block at 0x00E252B0, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E252B0, 112 bytes long
{2571} client block at 0x00E25200, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E25200, 112 bytes long
{2570} client block at 0x00E25150, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E25150, 112 bytes long
{2569} client block at 0x00E250A0, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E250A0, 112 bytes long
{2568} client block at 0x00E24FF0, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E24FF0, 112 bytes long
{2567} client block at 0x00E24F40, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E24F40, 112 bytes long
{2566} client block at 0x00E24E90, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E24E90, 112 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2565} normal block at 0x00E24DD8, 124 bytes long.
Data: < M xr > 00 00 00 00 E8 4D E2 00 00 00 00 00 78 72 E2 00
{2564} client block at 0x00E27278, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E27278, 112 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\afxcontextmenumanager.cpp(581) : {2563} client block at 0x00E24CC0, subtype c0, 28 bytes long.
a CObList object at $00E24CC0, 28 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2558} normal block at 0x0039DEC0, 36 bytes long.
Data: < x > 0C 00 E5 78 09 00 00 00 09 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2554} normal block at 0x00E248C0, 30 bytes long.
Data: < x > 0C 00 E5 78 06 00 00 00 06 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2551} normal block at 0x00E24AF8, 44 bytes long.
Data: < x > 0C 00 E5 78 0D 00 00 00 0D 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2548} normal block at 0x00E249E0, 44 bytes long.
Data: < x > 0C 00 E5 78 0D 00 00 00 0D 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2544} normal block at 0x00E23C30, 30 bytes long.
Data: < x > 0C 00 E5 78 06 00 00 00 06 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2540} normal block at 0x00E24648, 42 bytes long.
Data: < x > 0C 00 E5 78 0C 00 00 00 0C 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2536} normal block at 0x00E23D08, 30 bytes long.
Data: < x > 0C 00 E5 78 06 00 00 00 06 00 00 00 01 00 00 00
{2506} client block at 0x00E244E8, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E244E8, 112 bytes long
{2505} client block at 0x00E24438, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E24438, 112 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2504} normal block at 0x00E24380, 124 bytes long.
Data: < C B > 00 00 00 00 90 43 E2 00 00 00 00 00 D0 42 E2 00
{2503} client block at 0x00E242D0, subtype c0, 112 bytes long.
a CMFCToolBarButton object at $00E242D0, 112 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2502} normal block at 0x00E0FB68, 164 bytes long.
Data: < w @ > 00 00 00 00 77 00 00 00 40 E6 E0 00 00 00 00 00
{2501} normal block at 0x00E274B8, 68 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\afxcontextmenumanager.cpp(581) : {2500} client block at 0x00E0E640, subtype c0, 28 bytes long.
a CObList object at $00E0E640, 28 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2495} normal block at 0x00E24268, 44 bytes long.
Data: < x > 0C 00 E5 78 0D 00 00 00 0D 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2492} normal block at 0x00E0FE60, 44 bytes long.
Data: < x > 0C 00 E5 78 0D 00 00 00 0D 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {2488} normal block at 0x00E0FD40, 44 bytes long.
Data: < x > 0C 00 E5 78 0D 00 00 00 0D 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {2382} normal block at 0x00E0DE00, 124 bytes long.
Data: < N HO 1 > D8 4E E1 00 10 DE E0 00 48 4F E1 00 12 1B 31 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {1721} normal block at 0x00E1F038, 28 bytes long.
Data: < x > 0C 00 E5 78 05 00 00 00 05 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {1717} normal block at 0x00E0C5E0, 22 bytes long.
Data: < x > 0C 00 E5 78 02 00 00 00 02 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1716} normal block at 0x00E1EF58, 164 bytes long.
Data: < > 00 00 00 00 F0 C5 E0 00 01 11 0F 00 00 00 00 00
{1715} normal block at 0x00E1EC98, 68 bytes long.
Data: < \ > 00 00 00 00 00 00 00 00 00 00 00 00 5C EF E1 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1714} normal block at 0x00E1EBB8, 164 bytes long.
Data: < w > 00 00 00 00 77 00 00 00 01 11 0F 00 00 00 00 00
{1713} normal block at 0x00E0C2D0, 68 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1705} normal block at 0x00E1EEA0, 124 bytes long.
Data: < X > E8 ED E1 00 00 00 00 00 58 EE E1 00 91 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1704} normal block at 0x00E1EDE8, 124 bytes long.
Data: <0 > 30 ED E1 00 F8 ED E1 00 A0 ED E1 00 00 E8 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1703} normal block at 0x00E1ED30, 124 bytes long.
Data: < @ > 00 00 00 00 40 ED E1 00 00 00 00 00 00 E1 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {1359} normal block at 0x00E16F48, 104 bytes long.
Data: < x+ + > 0C 00 E5 78 2B 00 00 00 2B 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {1317} normal block at 0x00E14ED8, 124 bytes long.
Data: <P N > 50 CF E0 00 E8 4E E1 00 C0 CF E0 00 AE 1B 19 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {668} normal block at 0x00E0CF50, 124 bytes long.
Data: < ` v > 00 00 00 00 60 CF E0 00 00 00 00 00 76 1B 9A 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\plex.cpp(29) : {603} normal block at 0x00E01DF0, 124 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 18 1C E0 00
{602} client block at 0x00E01D90, subtype c0, 32 bytes long.
a CDocManager object at $00E01D90, 32 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {601} normal block at 0x00E01CE8, 106 bytes long.
Data: < x, , > 0C 00 E5 78 2C 00 00 00 2C 00 00 00 01 00 00 00
f:\newtest\test2\test2\test2.cpp(93) : {600} client block at 0x00E01C18, subtype c0, 144 bytes long.
a CMultiDocTemplate object at $00E01C18, 144 bytes long
{599} client block at 0x00E01950, subtype c0, 648 bytes long.
a CObject object at $00E01950, 648 bytes long
{598} client block at 0x00E01910, subtype c0, 4 bytes long.
a CObject object at $00E01910, 4 bytes long
{597} client block at 0x00E01870, subtype c0, 100 bytes long.
a CObject object at $00E01870, 100 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {595} normal block at 0x00E01810, 30 bytes long.
Data: < x > 0C 00 E5 78 06 00 00 00 06 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {594} normal block at 0x00E017A0, 50 bytes long.
Data: < x > 0C 00 E5 78 10 00 00 00 10 00 00 00 01 00 00 00
{593} normal block at 0x00E01750, 20 bytes long.
Data: < x x x> 04 00 00 00 20 00 E5 78 20 00 E5 78 20 00 E5 78
{592} normal block at 0x00E016F0, 32 bytes long.
Data: < p x T > D8 70 9F 78 04 00 00 00 54 17 E0 00 B0 17 E0 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {582} normal block at 0x0039FDA8, 36 bytes long.
Data: < x > 0C 00 E5 78 09 00 00 00 09 00 00 00 01 00 00 00
{531} client block at 0x00399A00, subtype c0, 64 bytes long.
a CDynLinkLibrary object at $00399A00, 64 bytes long
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {526} normal block at 0x003997A8, 28 bytes long.
Data: < x > 0C 00 E5 78 05 00 00 00 05 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {525} normal block at 0x00399750, 28 bytes long.
Data: < x > 0C 00 E5 78 05 00 00 00 05 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {524} normal block at 0x003996E0, 52 bytes long.
Data: < x > 0C 00 E5 78 11 00 00 00 11 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {523} normal block at 0x00399678, 40 bytes long.
Data: < x > 0C 00 E5 78 0B 00 00 00 0B 00 00 00 01 00 00 00
f:\dd\vctools\vc7libs\ship\atlmfc\src\mfc\strcore.cpp(141) : {522} normal block at 0x00399618, 32 bytes long.
Data: < x > 0C 00 E5 78 07 00 00 00 07 00 00 00 01 00 00 00