Hello,

Found a solution to my memory leak problem.  Again, this is strange as well.
By setting the DOM_Document to 0 before deleting does the trick.

Code example:

int main(int argc, char* argv[])
{
  XMLPlatformUtils::Initialize();
  DOMParser* parser = new DOMParser;
  parser->setValidationScheme(DOMParser::Val_Auto); // validate if dtd
present
  parser->setIncludeIgnorableWhitespace(false) ;

  parser->parse("..\\dat\\persxml.dat") ;
  DOM_Document& theDoc = parser->getDocument() ;
  theDoc = 0 ;
  parser->reset() ;

  parser->parse("..\\dat\\persopts.xml",true) ;
  delete parser ;

  XMLPlatformUtils::Terminate();

  return 0 ;
  
}

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

Reply via email to