// Hi,
//
// I did some debugging into these memory leaks...
//
// In my environment, using 1.5.1, I was able to recreate the same 4 memory
// leaks you were, albeit at different memory addresses, and different
// allocation IDs (no big deal - this is to be expected).
// Basically, I made a Dialog MFC AppWizard, and added calls to
// XMLPlatformUtils::Initialize() in InitInstance, and
// XMLPlatformUtils::Terminate() in ExitInstance()...

Thanx for your help!

I added a SAXParser within my simple-MFC-apps about-handling and it produces
additional leaks.
I am trying to parse the personal-xml file which comes with the 1.5.1
samples:

Detected memory leaks!
Dumping objects ->
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {884}
normal block at 0x007DEB90, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 01 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {883}
normal block at 0x007DEBD0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 01 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {848}
normal block at 0x007DD720, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 08 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {847}
normal block at 0x007DD760, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 0C 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {846}
normal block at 0x007DD7A0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 0E 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {845}
normal block at 0x007DD7E0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 0F 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {844}
normal block at 0x007DD820, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 0E 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {842}
normal block at 0x007DD8A0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 0C 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {840}
normal block at 0x007DD920, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 08 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {838}
normal block at 0x007DD9A0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 04 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {836}
normal block at 0x007DDA20, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 04 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {834}
normal block at 0x007DDAA0, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 02 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {832}
normal block at 0x007DDB20, 20 bytes long.
 Data: <                > 05 00 00 00 CD CD CD CD 02 00 00 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {823}
normal block at 0x007DDD60, 28 bytes long.
 Data: <|M        }     > 7C 4D 13 12 05 00 00 00 D0 EB 7D 00 00 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {822}
normal block at 0x007DDDB0, 28 bytes long.
 Data: <|M        }   } > 7C 4D 13 12 05 00 00 00 90 EB 7D 00 E0 D7 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {821}
normal block at 0x007DDE00, 28 bytes long.
 Data: <|M        }   } > 7C 4D 13 12 05 00 00 00 20 D8 7D 00 A0 D7 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {820}
normal block at 0x007DDE50, 28 bytes long.
 Data: <|M        } ` } > 7C 4D 13 12 05 00 00 00 A0 D8 7D 00 60 D7 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {815}
normal block at 0x007DDFD0, 24 bytes long.
 Data: < M        }   } > 90 4D 13 12 01 00 00 00 20 D9 7D 00 20 D7 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {810}
normal block at 0x007DC190, 24 bytes long.
 Data: < M        }   } > 90 4D 13 12 02 00 00 00 20 DA 7D 00 A0 D9 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {805}
normal block at 0x007DC310, 24 bytes long.
 Data: < M        }   } > 90 4D 13 12 02 00 00 00 20 DB 7D 00 A0 DA 7D 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {796}
normal block at 0x007DC5B0, 18 bytes long.
 Data: <                > 00 00 CD CD CD CD CD CD CD CD CD CD CD CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {795}
normal block at 0x007DC5F0, 18 bytes long.
 Data: <                > 00 00 CD CD CD CD CD CD CD CD CD CD CD CD CD CD
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {794}
normal block at 0x007DC630, 28 bytes long.
 Data: <  }       }     > F0 C5 7D 00 08 00 00 00 B0 C5 7D 00 08 00 00 00
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {48}
normal block at 0x007D19C0, 256 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) : {47}
normal block at 0x007D1AF0, 4 bytes long.
 Data: <|@  > 7C 40 10 12
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\crtdbg.h(552) : {46}
normal block at 0x007D1B20, 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) : {45}
normal block at 0x007D1D00, 16 bytes long.
 Data: <      } m     } > 01 CD CD CD 20 1B 7D 00 6D 00 00 00 F0 1A 7D 00
Object dump complete.

...

SAXParser parser;
parser.setValidationScheme(SAXParser::Val_Always);

try
{
        parser.parse(L"e:/xerces/xerces-c1_5_1-win32/samples/data/personal.xml");
}

catch(const XMLException& e)
{
        e.getType();
}

...

If I diabled to setValidtationScheme-statement, the additional leaks are
gone.
any suggestions on this one ?

Regards,
Hans Pesata

Ing. Hans Pesata
hpesata IT solutions
Grosse Mohreng. 40/21, A-1020 Wien
phone:   +43-1-9420520
fax:     +43-1-546800243
mailto:  [EMAIL PROTECTED]
web:     http://members.chello.at/hans.pesata


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to