sunway
unread,Feb 12, 2004, 5:20:12 AM2/12/04Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to wx-te...@lists.wxwindows.org
Hi:
NOTE: To wxBase 2.4.2 static library, no the following problem!
enviroment: Win 2000/ Visual C++ 6.0 / wxBase 2.5.0 / wxBase 2.5.1
description:
test.dll
export some functions , link with wxBase 2.5.X win32 static library.
testtest.exe
a simple console MFC application, which test "test.dll".
when debug "testtest.exe", I always found the following memory leaks.
But, if "testtest.exe" is not a MFC app, no memory leak!
if "testtest.exe" use wxBase 2.5.x static library directly, no memory leak!
if "test.dll" link with wxBase 2.4.2 static library, no memory leak!
I also try use wxInitializer in "test.dll", problem still exists.
/////////////////////////////////////////////////
Detected memory leaks!
Dumping objects ->
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {126} normal block at 0x00876740, 64 bytes long.
Data: < f > F8 66 87 00 CD CD CD CD CD CD CD CD CD CD CD CD
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {125} normal block at 0x008766F8, 4 bytes long.
Data: < > 18 D6 08 10
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {124} normal block at 0x008766A0, 24 bytes long.
Data: <PK > 50 4B 13 00 FF FF FF FF 00 00 00 00 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {123} normal block at 0x00876648, 24 bytes long.
Data: <0K > 30 4B 13 00 00 00 00 00 01 00 00 00 B4 07 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {122} normal block at 0x008765F0, 24 bytes long.
Data: < K > 10 4B 13 00 FF FF FF FF 00 00 00 00 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {121} normal block at 0x00876598, 24 bytes long.
Data: < Pe > FC D7 08 10 CD CD CD CD 50 65 87 00 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {120} normal block at 0x00876550, 8 bytes long.
Data: < > FC D5 08 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {119} normal block at 0x008764F8, 24 bytes long.
Data: < d e > FC D7 08 10 CD CD CD CD B0 64 87 00 98 65 87 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {118} normal block at 0x008764B0, 8 bytes long.
Data: < > 94 D3 08 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {117} normal block at 0x00876458, 24 bytes long.
Data: < d d > FC D7 08 10 CD CD CD CD 10 64 87 00 F8 64 87 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {116} normal block at 0x00876410, 8 bytes long.
Data: < > 84 D6 08 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {115} normal block at 0x008763B8, 24 bytes long.
Data: < pc Xd > FC D7 08 10 CD CD CD CD 70 63 87 00 58 64 87 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {114} normal block at 0x00876370, 8 bytes long.
Data: < > B4 D6 08 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {112} normal block at 0x00876318, 24 bytes long.
Data: < J > F0 4A 13 00 FF FF FF FF 00 00 00 00 00 00 00 00
D:\wxWindows 2.5.1\src\common\init.cpp(255) : {111} normal block at 0x00876290, 64 bytes long.
Data: < > EC D2 08 10 00 00 00 00 00 00 00 00 00 00 00 00
{103} normal block at 0x00875F90, 15 bytes long.
Data: <wxProcessEvent > 77 78 50 72 6F 63 65 73 73 45 76 65 6E 74 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {102} normal block at 0x00875F38, 24 bytes long.
Data: < _ k > AC D7 08 10 90 5F 87 00 C0 6B 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {100} normal block at 0x00875E88, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{99} normal block at 0x00875E40, 10 bytes long.
Data: <wxProcess > 77 78 50 72 6F 63 65 73 73 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {98} normal block at 0x00875DE8, 24 bytes long.
Data: < @^ k > AC D7 08 10 40 5E 87 00 E0 6B 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {96} normal block at 0x00875D90, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{95} normal block at 0x00875D48, 12 bytes long.
Data: <wxHashTable > 77 78 48 61 73 68 54 61 62 6C 65 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {94} normal block at 0x00875CF0, 24 bytes long.
Data: < H] hk > AC D7 08 10 48 5D 87 00 68 6B 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {92} normal block at 0x00875C98, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{91} normal block at 0x00875C50, 9 bytes long.
Data: <wxModule > 77 78 4D 6F 64 75 6C 65 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {90} normal block at 0x00875BF8, 24 bytes long.
Data: < P\ Hk > AC D7 08 10 50 5C 87 00 48 6B 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {88} normal block at 0x00875AF0, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{87} normal block at 0x00875BA0, 13 bytes long.
Data: <wxStringList > 77 78 53 74 72 69 6E 67 4C 69 73 74 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {86} normal block at 0x00875B48, 24 bytes long.
Data: < [ j > AC D7 08 10 A0 5B 87 00 E8 6A 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {84} normal block at 0x00875A98, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{83} normal block at 0x00875A50, 7 bytes long.
Data: <wxList > 77 78 4C 69 73 74 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {82} normal block at 0x008759F8, 24 bytes long.
Data: < PZ k > AC D7 08 10 50 5A 87 00 08 6B 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {80} normal block at 0x008758F0, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{79} normal block at 0x008759A0, 24 bytes long.
Data: <wxEventTableEntr> 77 78 45 76 65 6E 74 54 61 62 6C 65 45 6E 74 72
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {78} normal block at 0x00875948, 24 bytes long.
Data: < Y i > AC D7 08 10 A0 59 87 00 E0 69 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {76} normal block at 0x00875898, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {75} normal block at 0x008757E0, 124 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
{74} normal block at 0x00872BF0, 8 bytes long.
Data: <wxEvent > 77 78 45 76 65 6E 74 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {73} normal block at 0x00875788, 24 bytes long.
Data: < + 0j > AC D7 08 10 F0 2B 87 00 30 6A 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {71} normal block at 0x00872AE8, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{70} normal block at 0x00872B98, 13 bytes long.
Data: <wxEvtHandler > 77 78 45 76 74 48 61 6E 64 6C 65 72 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {69} normal block at 0x00872B40, 24 bytes long.
Data: < + Pj > AC D7 08 10 98 2B 87 00 50 6A 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {67} normal block at 0x008729E0, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{66} normal block at 0x00872A90, 15 bytes long.
Data: <wxLocaleModule > 77 78 4C 6F 63 61 6C 65 4D 6F 64 75 6C 65 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {65} normal block at 0x00872A38, 24 bytes long.
Data: < * `i > AC D7 08 10 90 2A 87 00 60 69 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {63} normal block at 0x008728D8, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{62} normal block at 0x00872988, 25 bytes long.
Data: <wxDateTimeHolida> 77 78 44 61 74 65 54 69 6D 65 48 6F 6C 69 64 61
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {61} normal block at 0x00872930, 24 bytes long.
Data: < ) h > AC D7 08 10 88 29 87 00 E0 68 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {59} normal block at 0x008727D0, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{58} normal block at 0x00872880, 15 bytes long.
Data: <wxThreadModule > 77 78 54 68 72 65 61 64 4D 6F 64 75 6C 65 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {57} normal block at 0x00872828, 24 bytes long.
Data: < ( 6 > AC D7 08 10 80 28 87 00 C8 36 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {55} normal block at 0x00872778, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
{54} normal block at 0x00872730, 9 bytes long.
Data: <wxObject > 77 78 4F 62 6A 65 63 74 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {53} normal block at 0x008726D8, 24 bytes long.
Data: < 0' 6 > AC D7 08 10 30 27 87 00 A0 36 0A 10 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {51} normal block at 0x00872638, 28 bytes long.
Data: <X > 58 D7 08 10 00 00 00 00 01 00 00 00 00 CD CD CD
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {50} normal block at 0x008747A0, 4000 bytes long.
Data: < > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
D:\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {49} normal block at 0x008725D0, 36 bytes long.
Data: < > 1C D8 08 10 00 00 00 00 E8 03 00 00 FF FF FF FF
Object dump complete.
/////////////////////////////////////////////////
best regards.