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 "Houle, Dennis W" <de...@boeing.com> on 2002/02/05 19:39:13 UTC

IDOMParser and IDOM_Document deletion

Team Xerces-C,
I'm thinking of using a persistent IDOMParser object to parse multiple
IDOM_Documents.  Is it safe (from a memory management perspective) to delete
individual IDOM_Document*s when no longer needed?  or do you have to wait
for the IDOMParser destructor to release all IDOM_Document memory?

Thanks.

- Dennis



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


Re: IDOMParser and IDOM_Document deletion

Posted by Tinny Ng <tn...@ca.ibm.com>.
You can call IDOMParser::resetDocumentPool() to release IDOM_Document memory
that is stored within the IDOMParser.  Please see
http://xml.apache.org/xerces-c/program.html#IDOMMemImplicit for more detail.

Tinny

"Houle, Dennis W" wrote:

> Team Xerces-C,
> I'm thinking of using a persistent IDOMParser object to parse multiple
> IDOM_Documents.  Is it safe (from a memory management perspective) to delete
> individual IDOM_Document*s when no longer needed?  or do you have to wait
> for the IDOMParser destructor to release all IDOM_Document memory?
>
> Thanks.
>
> - Dennis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


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