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 Ji...@kanisa.com on 2001/08/09 01:10:10 UTC

IDOM explicit/implicit object deletion

According to the programming guidelines on the Xerces-C website: " 
When parsing a document using an IDOMParser, the storage allocated will be
automatically deleted when the parser instance is deleted (implicit). If a
user is manually building a DOM tree in memory using the document factory
methods, then the user needs to explicilty delete the document object to
free all allocated memory.
"

What happens when one uses the IDOMParser to parse xml from a file and
construct the DOM tree and later manipulates that DOM tree by
adding/removing nodes to it? If we delete the document object and later
delete the IDOMParser object, then would it not result in a segmentation
fault?

BTW, the IDOM classes result in a dramatic improvement in performance on
Solaris, and a noticeable improvement on Win2K. Hope they are here to stay.

Thanks,
Jeetu


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