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 Colin Paul Adams <co...@colina.demon.co.uk> on 2003/04/15 11:31:24 UTC
release() for DOMTreeWalker and DOMNodeIterator
Would I be write in assuming that it should not be necessary to call
release() fro these two classes, if release is called on the
DOMDocument which creates them?
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: release() for DOMTreeWalker and DOMNodeIterator
Posted by Colin Paul Adams <co...@colina.demon.co.uk>.
>>>>> "Gareth" == Gareth Reakes <ga...@decisionsoft.com> writes:
Gareth> Hi, you are correct and in fact release does nothing at
Gareth> all for DOMTreeWalker and only removes the node iterator
Gareth> from the list of NodeIterators in the DOMDocument. None of
Gareth> the memory for these things is reused.
Ah, that would explain why when I accidentally called them, only
NodeIterator caused a crash :-)
--
Colin Paul Adams
Preston Lancashire
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: release() for DOMTreeWalker and DOMNodeIterator
Posted by Gareth Reakes <ga...@decisionsoft.com>.
Hi,
you are correct and in fact release does nothing at all for
DOMTreeWalker and only removes the node iterator from the list of
NodeIterators in the DOMDocument. None of the memory for these things is
reused.
Gareth
On 15 Apr 2003, Colin Paul Adams wrote:
> Would I be write in assuming that it should not be necessary to call
> release() fro these two classes, if release is called on the
> DOMDocument which creates them?
>
--
Gareth Reakes, Head of Product Development +44-1865-203192
DecisionSoft Limited http://www.decisionsoft.com
XML Development and Services
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org