I'm getting all these memory leaks when I shut my application down.
All this stuff is part of the XML that I'm parsing with the DOM parser.
I'm doing the suggestive stuff in the following FAQ that was posted and the
problem still persist. Do I need to be concerned with this stuff?
I'm using MS Visual C++ 6.0 on a Windows NT platform
Thanks,
Bob Barbara
I am seeing memory leaks in Xerces-C++. Are they real?
The Xerces-C++ library allocates and caches some commonly reused items. The storage for these may be reported as memory leaks by some heap analysis tools; to avoid the problem, call the function XMLPlatformUtils::Terminate() before your application exits. This will free all memory that was being held by the library.
For most applications, the use of Terminate() is optional. The system will recover all memory when the application process shuts down. The exception to this is the use of Xerces-C++ from DLLs that will be repeatedly loaded and unloaded from within the same process. To avoid memory leaks with this kind of use, Terminate() must be called before unloading the Xerces-C++ library
To ensure all the memory held by the parser are freed, the number of XMLPlatformUtils::Terminate() calls should match the number of XMLPlatformUtils::Initialize() calls.
Data: <Quantity > 51 75 61 6E 74 69 74 79 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2529} normal block at 0x00F8FF30, 4 bytes long.
Data: <500 > 35 30 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2526} normal block at 0x00F8FC70, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2524} normal block at 0x00F8FD80, 4 bytes long.
Data: <500 > 35 30 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2517} normal block at 0x00F8FB80, 10 bytes long.
Data: <PPrevious > 50 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2516} normal block at 0x00F8FDB0, 8 bytes long.
Data: <903-122 > 39 30 33 2D 31 32 32 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2513} normal block at 0x00F8FDF0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2511} normal block at 0x00F8FE30, 8 bytes long.
Data: <903-122 > 39 30 33 2D 31 32 32 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2504} normal block at 0x00F8FD40, 9 bytes long.
Data: <Previous > 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2503} normal block at 0x00F8FF60, 8 bytes long.
Data: <003-241 > 30 30 33 2D 32 34 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2500} normal block at 0x00F8FFA0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2498} normal block at 0x00F8FFE0, 8 bytes long.
Data: <003-241 > 30 30 33 2D 32 34 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2491} normal block at 0x00F8FEF0, 8 bytes long.
Data: <Current > 43 75 72 72 65 6E 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2490} normal block at 0x00F8B6F0, 8 bytes long.
Data: <454-665 > 34 35 34 2D 36 36 35 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2487} normal block at 0x00F8B730, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2485} normal block at 0x00F8B7A0, 8 bytes long.
Data: <454-665 > 34 35 34 2D 36 36 35 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2478} normal block at 0x00F88BB0, 8 bytes long.
Data: <Network > 4E 65 74 77 6F 72 6B 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2477} normal block at 0x00F8B690, 2 bytes long.
Data: <9 > 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2474} normal block at 0x00F88BF0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2472} normal block at 0x00F8B6C0, 2 bytes long.
Data: <9 > 39 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2463} normal block at 0x00F88F30, 5 bytes long.
Data: <Name > 4E 61 6D 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2462} normal block at 0x00F88F70, 15 bytes long.
Data: <Americas Store > 41 6D 65 72 69 63 61 73 20 53 74 6F 72 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2459} normal block at 0x00F88FB0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2457} normal block at 0x00F8C090, 15 bytes long.
Data: <Americas Store > 41 6D 65 72 69 63 61 73 20 53 74 6F 72 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2207} normal block at 0x00F8E280, 9 bytes long.
Data: <Quantity > 51 75 61 6E 74 69 74 79 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2206} normal block at 0x00F8E5C0, 4 bytes long.
Data: <100 > 31 30 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2203} normal block at 0x00F8E030, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2201} normal block at 0x00F8E390, 4 bytes long.
Data: <100 > 31 30 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2194} normal block at 0x00F8E190, 10 bytes long.
Data: <PPrevious > 50 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2193} normal block at 0x00F8E3C0, 8 bytes long.
Data: <500-215 > 35 30 30 2D 32 31 35 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2190} normal block at 0x00F8E400, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2188} normal block at 0x00F8E440, 8 bytes long.
Data: <500-215 > 35 30 30 2D 32 31 35 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2181} normal block at 0x00F8E350, 9 bytes long.
Data: <Previous > 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2180} normal block at 0x00F8E540, 8 bytes long.
Data: <201-877 > 32 30 31 2D 38 37 37 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2177} normal block at 0x00F8E580, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2175} normal block at 0x00F8E5F0, 8 bytes long.
Data: <201-877 > 32 30 31 2D 38 37 37 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2168} normal block at 0x00F8E500, 8 bytes long.
Data: <Current > 43 75 72 72 65 6E 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2167} normal block at 0x00F8C050, 8 bytes long.
Data: <303-213 > 33 30 33 2D 32 31 33 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2164} normal block at 0x00F8E6D0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2162} normal block at 0x00F8D290, 8 bytes long.
Data: <303-213 > 33 30 33 2D 32 31 33 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2155} normal block at 0x00F8D730, 8 bytes long.
Data: <Network > 4E 65 74 77 6F 72 6B 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2154} normal block at 0x00F88030, 2 bytes long.
Data: <4 > 34 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2151} normal block at 0x00F88060, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2149} normal block at 0x00F8D2D0, 2 bytes long.
Data: <4 > 34 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2140} normal block at 0x00F8D5E0, 5 bytes long.
Data: <Name > 4E 61 6D 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2139} normal block at 0x00F8D620, 12 bytes long.
Data: <HSN Espanol > 48 53 4E 20 45 73 70 61 6E 6F 6C 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2136} normal block at 0x00F8D660, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {2134} normal block at 0x00F8D6D0, 12 bytes long.
Data: <HSN Espanol > 48 53 4E 20 45 73 70 61 6E 6F 6C 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1884} normal block at 0x00F8E7C0, 9 bytes long.
Data: <Quantity > 51 75 61 6E 74 69 74 79 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1883} normal block at 0x00F8EAC0, 4 bytes long.
Data: <250 > 32 35 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1880} normal block at 0x00F8E800, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1878} normal block at 0x00F8E910, 4 bytes long.
Data: <250 > 32 35 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1871} normal block at 0x00F8E710, 10 bytes long.
Data: <PPrevious > 50 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1870} normal block at 0x00F8E940, 8 bytes long.
Data: <703-844 > 37 30 33 2D 38 34 34 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1867} normal block at 0x00F8E980, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1865} normal block at 0x00F8E9C0, 8 bytes long.
Data: <703-844 > 37 30 33 2D 38 34 34 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1858} normal block at 0x00F8E8D0, 9 bytes long.
Data: <Previous > 50 72 65 76 69 6F 75 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1857} normal block at 0x00F8EAF0, 8 bytes long.
Data: <448-221 > 34 34 38 2D 32 32 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1854} normal block at 0x00F8EB30, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1852} normal block at 0x00F8EB70, 8 bytes long.
Data: <448-221 > 34 34 38 2D 32 32 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1845} normal block at 0x00F8EA80, 8 bytes long.
Data: <Current > 43 75 72 72 65 6E 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1844} normal block at 0x00F8EC30, 8 bytes long.
Data: <904-203 > 39 30 34 2D 32 30 33 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1841} normal block at 0x00F8EC70, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1839} normal block at 0x00F8ECE0, 8 bytes long.
Data: <904-203 > 39 30 34 2D 32 30 33 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1832} normal block at 0x00F89CB0, 8 bytes long.
Data: <Network > 4E 65 74 77 6F 72 6B 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1831} normal block at 0x00F89820, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1828} normal block at 0x00F89CF0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1826} normal block at 0x00F89850, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1817} normal block at 0x00F8EEF0, 5 bytes long.
Data: <Name > 4E 61 6D 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1816} normal block at 0x00F89B80, 22 bytes long.
Data: <Home Shopping Ne> 48 6F 6D 65 20 53 68 6F 70 70 69 6E 67 20 4E 65
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1813} normal block at 0x00F89BD0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1811} normal block at 0x00F89C40, 22 bytes long.
Data: <Home Shopping Ne> 48 6F 6D 65 20 53 68 6F 70 70 69 6E 67 20 4E 65
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1545} normal block at 0x00F8D770, 13 bytes long.
Data: <Server0Count > 53 65 72 76 65 72 30 43 6F 75 6E 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1544} normal block at 0x00F8D9A0, 20 bytes long.
Data: <0,0,0,0,0,0,0,0,> 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1541} normal block at 0x00F8D9E0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1539} normal block at 0x00F8DA20, 20 bytes long.
Data: <0,0,0,0,0,0,0,0,> 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C 30 2C
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1532} normal block at 0x00F8D930, 8 bytes long.
Data: <Server0 > 53 65 72 76 65 72 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1531} normal block at 0x00F8DAA0, 19 bytes long.
Data: <No Active Sessio> 4E 6F 20 41 63 74 69 76 65 20 53 65 73 73 69 6F
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1528} normal block at 0x00F8DAE0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1526} normal block at 0x00F8DB50, 19 bytes long.
Data: <No Active Sessio> 4E 6F 20 41 63 74 69 76 65 20 53 65 73 73 69 6F
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1519} normal block at 0x00F89620, 11 bytes long.
Data: <MaxServers > 4D 61 78 53 65 72 76 65 72 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1518} normal block at 0x00F89170, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1515} normal block at 0x00F89130, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1513} normal block at 0x00F89540, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1504} normal block at 0x00F8DD70, 9 bytes long.
Data: <DateTime > 44 61 74 65 54 69 6D 65 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1503} normal block at 0x00F894B0, 21 bytes long.
Data: <02-26-2002 13:57> 30 32 2D 32 36 2D 32 30 30 32 20 31 33 3A 35 37
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1500} normal block at 0x00F89500, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1498} normal block at 0x00F89570, 21 bytes long.
Data: <02-26-2002 13:57> 30 32 2D 32 36 2D 32 30 30 32 20 31 33 3A 35 37
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1280} normal block at 0x00F896A0, 11 bytes long.
Data: <MaxServers > 4D 61 78 53 65 72 76 65 72 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1279} normal block at 0x00F89720, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1276} normal block at 0x00F896E0, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {1274} normal block at 0x00F89750, 2 bytes long.
Data: <1 > 31 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {994} normal block at 0x00F8B110, 7 bytes long.
Data: <Misses > 4D 69 73 73 65 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {993} normal block at 0x00F8B190, 2 bytes long.
Data: <0 > 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {990} normal block at 0x00F8B150, 6 bytes long.
Data: <#text > 23 74 65 78 74 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {988} normal block at 0x00F8B1C0, 2 bytes long.
Data: <0 > 30 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {981} normal block at 0x00F8B050, 5 bytes long.
Data: <Hits > 48 69 74 73 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {980} normal block at 0x00F8B0D0, 3 bytes long.
Data: <63 > 36 33 00
