You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Ing. Hans Pesata" <hp...@chello.at> on 2001/08/04 17:21:22 UTC

problems with Xerces 1.5.1 within MFC-app

Hi !

I am trying to use the Xerces 1.5.1 Dll within a MFC-app but I am running
into
some troubles with memory-leaks.

I am using NT Workstation 4.0/SP6, VC++ 6.0 and my app dynamically links
MFC.

I added XMLPlatformUtils::Initialize() to the InitInstance()-member
of my CWinApp-derived class and XMLPlatformUtils::Terminate() to the
ExitInstance()-member.

When I start my app without doing any parsing I get the following
debug-output after terminating it:

Detected memory leaks!
Dumping objects ->
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: <|p  > 7C 70 11 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.

I am using the parser within an MFC-extension-Dll which I dynamically load
from within my app
and I get a lot more memory-leaks (more than 3000 ...) when I do some
SAX-parsing (similar to the SAX2COUNT-sample)
within a function of this Dll. I am using a DTD for the validation of my
XML-file.

I also tried to use XMLPlatformUtils::Initialize() /
XMLPlatformUtils::Terminate() calls within the
extension-Sll, but it was always the same.

I tried the stable 1.5.1 build from 18.07.2001 and also the one from
30.07.2001 but it is the same.

I dont know how to proceed with this, any help with this would be greatly
appreciated,
thanx in advance!

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