Hi,
        you can never delete the DOMNodes. You can call release on them to 
make the memory they are using be recycled. The memory from the DOMNodes 
is owned by the document. When you delete the document the memory from the 
nodes is freed.

Gareth



On 25 Jan 2003, Colin Paul Adams wrote:

> >>>>> "Colin" == Colin Paul Adams <[EMAIL PROTECTED]> writes:
> 
>     Tinny> In the meantime may be you can check why the "local_file"
>     Tinny> is not destroyed in your Eiffel program.
> 
>     Colin> Oh, I know why that is. I've been putting off facing up to
>     Colin> analysing how to deal with when to destroy objects (project
>     Colin> is still beta). I guess now is the time.
> 
> So that was easily fixed.
> 
> What I am not clear about, is when it is safe to delete the nodes in a
> DOMDocument structure. Do these all have to be deleted individually,
> or does deleting the owning DOMDocument or DOMDocumentFragment
> suffice? Does it make a difference if the document is created by a
> DOMBuilder or by a call to createDocument? 
> 

-- 
Gareth Reakes, Head of Product Development  +44-1865-203192
DecisionSoft Limited                        http://www.decisionsoft.com
XML Development and Services




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

Reply via email to