xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ing. Hans Pesata" <hpes...@chello.at>
Subject AW: problems with Xerces 1.5.1 within MFC-app
Date Sat, 04 Aug 2001 16:46:07 GMT
Hi !

Thanx for your reply !

// I take it then, that if you remove the calls to
// XMLPlatformUtils::Initialize() and XMLPlatformUtils::Terminate(), and you
// don't load your extension DLL,  the memory leaks aren't present?

I tried it, but the result was the same, still memory leaks ...
after removing ALL xerces-include-files and NOT link the xerces-dll, the
memory-leaks are gone.

I also realized, that if I just remove XMLPlatformUtils::Terminate(), there
are a lot more memory-leaks:

Detected memory leaks!
Dumping objects ->
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {337}
normal block at 0x007D46E0, 4 bytes long.
 Data: < q  > C4 71 11 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {336}
normal block at 0x007D4710, 4 bytes long.
 Data: <`q  > 60 71 11 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {335}
normal block at 0x007D4740, 12 bytes long.
 Data: < G}  K} |   > D0 47 7D 00 F0 4B 7D 00 7C 09 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {334}
normal block at 0x007D4780, 26 bytes long.
 Data: <W I N D O W S - > 57 00 49 00 4E 00 44 00 4F 00 57 00 53 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {333}
normal block at 0x007D47D0, 8 bytes long.
 Data: <4    G} > 34 EF 12 12 80 47 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {332}
normal block at 0x007D4810, 12 bytes long.
 Data: < H}         > 90 48 7D 00 00 00 00 00 94 05 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {331}
normal block at 0x007D4850, 16 bytes long.
 Data: <I B M 1 1 4 0   > 49 00 42 00 4D 00 31 00 31 00 34 00 30 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {330}
normal block at 0x007D4890, 8 bytes long.
 Data: <0   PH} > 30 EF 12 12 50 48 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {329}
normal block at 0x007D48D0, 12 bytes long.
 Data: <PI}         > 50 49 7D 00 00 00 00 00 84 05 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {328}
normal block at 0x007D4910, 14 bytes long.
 Data: <I B M 0 3 7   > 49 00 42 00 4D 00 30 00 33 00 37 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {327}
normal block at 0x007D4950, 8 bytes long.
 Data: <,    I} > 2C EF 12 12 10 49 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {326}
normal block at 0x007D4990, 12 bytes long.
 Data: < J}     h   > 20 4A 7D 00 00 00 00 00 68 05 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {325}
normal block at 0x007D49D0, 26 bytes long.
 Data: <E B C D I C - C > 45 00 42 00 43 00 44 00 49 00 43 00 2D 00 43 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {324}
normal block at 0x007D4A20, 8 bytes long.
 Data: <,    I} > 2C EF 12 12 D0 49 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {323}
normal block at 0x007D4A60, 12 bytes long.
 Data: < J}         > E0 4A 7D 00 00 00 00 00 E8 07 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {322}
normal block at 0x007D4AA0, 16 bytes long.
 Data: <U C S - 4 B E   > 55 00 43 00 53 00 2D 00 34 00 42 00 45 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {321}
normal block at 0x007D4AE0, 12 bytes long.
 Data: <(    J}     > 28 EF 12 12 A0 4A 7D 00 01 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {320}
normal block at 0x007D4B20, 12 bytes long.
 Data: < K}         > B0 4B 7D 00 00 00 00 00 D0 07 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {319}
normal block at 0x007D4B60, 22 bytes long.
 Data: <U C S - 4   ( B > 55 00 43 00 53 00 2D 00 34 00 20 00 28 00 42 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {318}
normal block at 0x007D4BB0, 12 bytes long.
 Data: <(   `K}     > 28 EF 12 12 60 4B 7D 00 01 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {317}
normal block at 0x007D4BF0, 12 bytes long.
 Data: <pL}         > 70 4C 7D 00 00 00 00 00 D4 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {316}
normal block at 0x007D4C30, 18 bytes long.
 Data: <U T F - 1 6 B E > 55 00 54 00 46 00 2D 00 31 00 36 00 42 00 45 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {315}
normal block at 0x007D4C70, 12 bytes long.
 Data: <$   0L}     > 24 EF 12 12 30 4C 7D 00 01 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {314}
normal block at 0x007D4CB0, 12 bytes long.
 Data: <@M}         > 40 4D 7D 00 00 00 00 00 BC 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {313}
normal block at 0x007D4CF0, 24 bytes long.
 Data: <U T F - 1 6   ( > 55 00 54 00 46 00 2D 00 31 00 36 00 20 00 28 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {312}
normal block at 0x007D4D40, 12 bytes long.
 Data: <$    L}     > 24 EF 12 12 F0 4C 7D 00 01 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {311}
normal block at 0x007D4D80, 12 bytes long.
 Data: < N}         > 00 4E 7D 00 00 00 00 00 10 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {310}
normal block at 0x007D4DC0, 16 bytes long.
 Data: <U C S - 4 L E   > 55 00 43 00 53 00 2D 00 34 00 4C 00 45 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {309}
normal block at 0x007D4E00, 12 bytes long.
 Data: <(    M}     > 28 EF 12 12 C0 4D 7D 00 00 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {308}
normal block at 0x007D4E40, 12 bytes long.
 Data: < N}         > D0 4E 7D 00 00 00 00 00 F8 07 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {307}
normal block at 0x007D4E80, 22 bytes long.
 Data: <U C S - 4   ( L > 55 00 43 00 53 00 2D 00 34 00 20 00 28 00 4C 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {306}
normal block at 0x007D4ED0, 12 bytes long.
 Data: <(    N}     > 28 EF 12 12 80 4E 7D 00 00 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {305}
normal block at 0x007D4F10, 12 bytes long.
 Data: < O}         > 90 4F 7D 00 00 00 00 00 00 09 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {304}
normal block at 0x007D4F50, 18 bytes long.
 Data: <U T F - 1 6 L E > 55 00 54 00 46 00 2D 00 31 00 36 00 4C 00 45 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {303}
normal block at 0x007D4F90, 12 bytes long.
 Data: <$   PO}     > 24 EF 12 12 50 4F 7D 00 00 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {302}
normal block at 0x007D3030, 12 bytes long.
 Data: <p0}         > 70 30 7D 00 00 00 00 00 E8 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {301}
normal block at 0x007D4FD0, 24 bytes long.
 Data: <U T F - 1 6   ( > 55 00 54 00 46 00 2D 00 31 00 36 00 20 00 28 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {300}
normal block at 0x007D3070, 12 bytes long.
 Data: <$    O}     > 24 EF 12 12 D0 4F 7D 00 00 CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {299}
normal block at 0x007D30B0, 12 bytes long.
 Data: <01}         > 30 31 7D 00 00 00 00 00 88 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {298}
normal block at 0x007D30F0, 16 bytes long.
 Data: <L A T I N _ 1   > 4C 00 41 00 54 00 49 00 4E 00 5F 00 31 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {297}
normal block at 0x007D3130, 8 bytes long.
 Data: <     0} > 20 EF 12 12 F0 30 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {296}
normal block at 0x007D3170, 12 bytes long.
 Data: < 1}     x   > F0 31 7D 00 00 00 00 00 78 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {295}
normal block at 0x007D31B0, 16 bytes long.
 Data: <L A T I N - 1   > 4C 00 41 00 54 00 49 00 4E 00 2D 00 31 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {294}
normal block at 0x007D31F0, 8 bytes long.
 Data: <     1} > 20 EF 12 12 B0 31 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {293}
normal block at 0x007D3230, 12 bytes long.
 Data: < 2}     h   > B0 32 7D 00 00 00 00 00 68 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {292}
normal block at 0x007D3270, 14 bytes long.
 Data: <L A T I N 1   > 4C 00 41 00 54 00 49 00 4E 00 31 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {291}
normal block at 0x007D32B0, 8 bytes long.
 Data: <    p2} > 20 EF 12 12 70 32 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {290}
normal block at 0x007D32F0, 12 bytes long.
 Data: <p3}  :} X   > 70 33 7D 00 90 3A 7D 00 58 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {289}
normal block at 0x007D3330, 14 bytes long.
 Data: <I B M 8 1 9   > 49 00 42 00 4D 00 38 00 31 00 39 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {288}
normal block at 0x007D3370, 8 bytes long.
 Data: <    03} > 20 EF 12 12 30 33 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {287}
normal block at 0x007D33B0, 12 bytes long.
 Data: <04}     H   > 30 34 7D 00 00 00 00 00 48 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {286}
normal block at 0x007D33F0, 16 bytes long.
 Data: <I B M - 8 1 9   > 49 00 42 00 4D 00 2D 00 38 00 31 00 39 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {285}
normal block at 0x007D3430, 8 bytes long.
 Data: <     3} > 20 EF 12 12 F0 33 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {284}
normal block at 0x007D3470, 12 bytes long.
 Data: < 5}  9} 0   > 00 35 7D 00 10 39 7D 00 30 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {283}
normal block at 0x007D34B0, 22 bytes long.
 Data: <I S O _ 8 8 5 9 > 49 00 53 00 4F 00 5F 00 38 00 38 00 35 00 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {282}
normal block at 0x007D3500, 8 bytes long.
 Data: <     4} > 20 EF 12 12 B0 34 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {281}
normal block at 0x007D3540, 12 bytes long.
 Data: < 5}         > D0 35 7D 00 00 00 00 00 18 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {280}
normal block at 0x007D3580, 22 bytes long.
 Data: <I S O - 8 8 5 9 > 49 00 53 00 4F 00 2D 00 38 00 38 00 35 00 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {279}
normal block at 0x007D35D0, 8 bytes long.
 Data: <     5} > 20 EF 12 12 80 35 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {278}
normal block at 0x007D3610, 12 bytes long.
 Data: < 6}         > 90 36 7D 00 00 00 00 00 04 06 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {277}
normal block at 0x007D3650, 20 bytes long.
 Data: <I S O 8 8 5 9 - > 49 00 53 00 4F 00 38 00 38 00 35 00 39 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {276}
normal block at 0x007D3690, 8 bytes long.
 Data: <    P6} > 20 EF 12 12 50 36 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {275}
normal block at 0x007D36D0, 12 bytes long.
 Data: <P7}     p   > 50 37 7D 00 00 00 00 00 70 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {274}
normal block at 0x007D3710, 10 bytes long.
 Data: <U T F 8   > 55 00 54 00 46 00 38 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {273}
normal block at 0x007D3750, 8 bytes long.
 Data: <     7} > 1C EF 12 12 10 37 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {272}
normal block at 0x007D3790, 12 bytes long.
 Data: < 8}     d   > 10 38 7D 00 00 00 00 00 64 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {271}
normal block at 0x007D37D0, 12 bytes long.
 Data: <U T F - 8   > 55 00 54 00 46 00 2D 00 38 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {270}
normal block at 0x007D3810, 8 bytes long.
 Data: <     7} > 1C EF 12 12 D0 37 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {269}
normal block at 0x007D3850, 12 bytes long.
 Data: < 8}     P   > D0 38 7D 00 00 00 00 00 50 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {268}
normal block at 0x007D3890, 18 bytes long.
 Data: <U S _ A S C I I > 55 00 53 00 5F 00 41 00 53 00 43 00 49 00 49 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {267}
normal block at 0x007D38D0, 8 bytes long.
 Data: <     8} > 18 EF 12 12 90 38 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {266}
normal block at 0x007D3910, 12 bytes long.
 Data: < 9}     D   > 90 39 7D 00 00 00 00 00 44 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {265}
normal block at 0x007D3950, 12 bytes long.
 Data: <A S C I I   > 41 00 53 00 43 00 49 00 49 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {264}
normal block at 0x007D3990, 8 bytes long.
 Data: <    P9} > 18 EF 12 12 50 39 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {263}
normal block at 0x007D39D0, 12 bytes long.
 Data: <P:}     4   > 50 3A 7D 00 00 00 00 00 34 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {262}
normal block at 0x007D3A10, 16 bytes long.
 Data: <U S A S C I I   > 55 00 53 00 41 00 53 00 43 00 49 00 49 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {261}
normal block at 0x007D3A50, 8 bytes long.
 Data: <     :} > 18 EF 12 12 10 3A 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {260}
normal block at 0x007D3A90, 12 bytes long.
 Data: < ;}         > 10 3B 7D 00 00 00 00 00 20 08 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {259}
normal block at 0x007D3AD0, 18 bytes long.
 Data: <U S - A S C I I > 55 00 53 00 2D 00 41 00 53 00 43 00 49 00 49 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {258}
normal block at 0x007D3B10, 8 bytes long.
 Data: <     :} > 18 EF 12 12 D0 3A 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {257}
normal block at 0x007D3B50, 12 bytes long.
 Data: < ;}         > E0 3B 7D 00 00 00 00 00 98 09 13 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {256}
normal block at 0x007D3B90, 26 bytes long.
 Data: <X E R C E S - X > 58 00 45 00 52 00 43 00 45 00 53 00 2D 00 58 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {255}
normal block at 0x007D3BE0, 8 bytes long.
 Data: <     ;} > 10 EF 12 12 90 3B 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {254}
normal block at 0x007D1030, 4 bytes long.
 Data: <|p  > 7C 70 11 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {253}
normal block at 0x007D3C20, 412 bytes long.
 Data: <        P;}     > 00 00 00 00 00 00 00 00 50 3B 7D 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {252}
normal block at 0x007D3DF0, 16 bytes long.
 Data: <     <} g   0 } > 01 CD CD CD 20 3C 7D 00 67 00 00 00 30 10 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {139}
normal block at 0x007D3E30, 12 bytes long.
 Data: < >}  )} p>} > C0 3E 7D 00 80 29 7D 00 70 3E 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {138}
normal block at 0x007D3E70, 26 bytes long.
 Data: <W I N D O W S - > 57 00 49 00 4E 00 44 00 4F 00 57 00 53 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {137}
normal block at 0x007D3EC0, 12 bytes long.
 Data: <p>}         > 70 3E 7D 00 EA 04 00 00 EA 04 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {136}
normal block at 0x007D3F00, 12 bytes long.
 Data: < ?} P*} @?} > 90 3F 7D 00 50 2A 7D 00 40 3F 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {135}
normal block at 0x007D3F40, 26 bytes long.
 Data: <W I N D O W S - > 57 00 49 00 4E 00 44 00 4F 00 57 00 53 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {134}
normal block at 0x007D3F90, 12 bytes long.
 Data: <@?}         > 40 3F 7D 00 E9 04 00 00 E9 04 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {133}
normal block at 0x007D2030, 12 bytes long.
 Data: <p }  +}  ?} > 70 20 7D 00 20 2B 7D 00 D0 3F 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {132}
normal block at 0x007D3FD0, 26 bytes long.
 Data: <W I N D O W S - > 57 00 49 00 4E 00 44 00 4F 00 57 00 53 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {131}
normal block at 0x007D2070, 12 bytes long.
 Data: < ?}         > D0 3F 7D 00 E8 04 00 00 E8 04 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {130}
normal block at 0x007D20B0, 12 bytes long.
 Data: <@!}  +}   } > 40 21 7D 00 F0 2B 7D 00 F0 20 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {129}
normal block at 0x007D20F0, 26 bytes long.
 Data: <W I N D O W S - > 57 00 49 00 4E 00 44 00 4F 00 57 00 53 00 2D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {128}
normal block at 0x007D2140, 12 bytes long.
 Data: <  }         > F0 20 7D 00 E7 04 00 00 E7 04 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : normal
block at 0x007D2D00, 22 bytes long.
 Data: <I S O - 8 8 5 9 > 49 00 53 00 4F 00 2D 00 38 00 38 00 35 00 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {83}
normal block at 0x007D2D50, 12 bytes long.
 Data: < -}      o  > 00 2D 7D 00 E2 04 00 00 B0 6F 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {82}
normal block at 0x007D2D90, 12 bytes long.
 Data: < .}      -} > 20 2E 7D 00 00 00 00 00 D0 2D 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {81}
normal block at 0x007D2DD0, 22 bytes long.
 Data: <I S O - 8 8 5 9 > 49 00 53 00 4F 00 2D 00 38 00 38 00 35 00 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {80}
normal block at 0x007D2E20, 12 bytes long.
 Data: < -}         > D0 2D 7D 00 E4 04 00 00 E4 04 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {79}
normal block at 0x007D2E60, 12 bytes long.
 Data: < .}      .} > E0 2E 7D 00 00 00 00 00 A0 2E 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {78}
normal block at 0x007D2EA0, 16 bytes long.
 Data: <D O S - 8 6 2   > 44 00 4F 00 53 00 2D 00 38 00 36 00 32 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {77}
normal block at 0x007D2EE0, 12 bytes long.
 Data: < .}     ^   > A0 2E 7D 00 E7 04 00 00 5E 03 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {76}
normal block at 0x007D2F20, 12 bytes long.
 Data: < /}     `/} > A0 2F 7D 00 00 00 00 00 60 2F 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {75}
normal block at 0x007D2F60, 16 bytes long.
 Data: <D O S - 7 2 0   > 44 00 4F 00 53 00 2D 00 37 00 32 00 30 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {74}
normal block at 0x007D2FA0, 12 bytes long.
 Data: <`/}         > 60 2F 7D 00 E8 04 00 00 D0 02 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {73}
normal block at 0x007D2FE0, 12 bytes long.
 Data: <  }     ` } > A0 10 7D 00 00 00 00 00 60 10 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {72}
normal block at 0x007D1060, 18 bytes long.
 Data: <A S M O - 7 0 8 > 41 00 53 00 4D 00 4F 00 2D 00 37 00 30 00 38 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {71}
normal block at 0x007D10A0, 12 bytes long.
 Data: <` }         > 60 10 7D 00 E8 04 00 00 C4 02 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {70}
normal block at 0x007D10E0, 4 bytes long.
 Data: <|p  > 7C 70 11 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {69}
normal block at 0x007D1110, 436 bytes long.
 Data: <                > 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {68}
normal block at 0x007D12F0, 16 bytes long.
 Data: <      } m     } > 01 CD CD CD 10 11 7D 00 6D 00 00 00 E0 10 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {67}
normal block at 0x007D1330, 8 bytes long.
 Data: < q    } > 20 71 11 12 F0 12 7D 00

// Presumably, you downloaded the Xerces DLL - you didn't build it
// - so can you
// verify that the runtime library being used by the Debug
// configurations for
// both your application and your extension DLL is the Debug
// Multithreaded DLL
// version? (Project Settings | C/C++ tab | Code Generation
// Category, for each
// project.)

yes, I am using Debug Multithreaded DLL within ALL my projects.

// Just to get a better idea of the environment, what type of EXE is your
// application (MFC-Appwizard EXE, Win32 Exe, console EXE, console
// EXE with MFC
// support...)?

I tried it to use xerces with an simple app I created with appwizard (MFC
appwizard EXE)
and it produced the results.

// Perhaps you should check into _CrtSetAllocHook() and/or
// _CrtSetDebugBreak()
// (or something approaching that name - I can't recall  it exactly).
// Those allocation IDs look rather low (45, 46, 47, 48 )...  Does your
// application use any other DLLs that you wrote?  Anyways, in
// order to get the
// results from those _CrtSet.... functions, you may need to call
// them prior to
// main() or whatever your entry-point is in the EXE.  The _CrtSetAllocHook
// function gives you the allocation ID - perhaps you can see what the ID is
// when your hook function is called the first time - if it is
// higher than the
// allocation IDs, you will need to find a way to call the _CrtSet... much
// earlier in your program's execution.  You could create a cheesy class and
// instantiate a global object of that type, and call the _CrtSet...
// function(s) in its initialization.  However, if your EXE implicitly loads
// other DLLs (perhaps some you wrote), and any allocations are
// made from those
// DLLs, it may be pushing the allocation ID well over 45, 46, 47, 48 even
// before the code in the actual EXE starts to be executed.  In
// this case, if
// you can determine which DLL those allocations are taking place
// in, and you
// have the source for that DLL, you could potentially modify that DLL in a
// manner similar to the one described above, to pinpoint the
// allocations and
// then potentially determine why the memory isn't being deallocated.
//
// The above method might help diagnose the initial memory leaks you are
// seeing.

I have to check this out, thanx for the hint.

// With regards to your statement that "I get a lot more memory-leaks (more
// than 3000 ...) when I do some SAX-parsing (similar to the
// SAX2COUNT-sample"...  Can you comment out the installation of
// your handler
// object into the parser (it's been a while and I don't have access to the
// docs, but it's something like "parser->setHandler" or
// "parser->setDocumentHandler")?  If the memory leaks go away when
// you comment
// this line out, the problem is likely somewhere in your handler.

Currently I am not using a content/error-handler ...

do you have any further suggestions ?
did you ever try to use Xerces within an MFC-environment ?

Regards,
Hans Pesata


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Mime
View raw message