Hey,
take a look in the archives for a detailed response from me about
why this is (would have been [EMAIL PROTECTED] then). Only some
things are recycled (like DOMElements). If the DOMElement news something
that is not an object that is recycled (eg like the new of the attibute
list in the constuctor) then release will not release the memory. Deleting
the document will.
Gareth
On Fri, 27 Feb 2004 [EMAIL PROTECTED] wrote:
>
> This code gives me a memory leck:
>
> XMLCh *tmpCh=transcode("OK");
> DOMNode* m_idRoot;
> while(1)
> {
> m_idRoot= m_idDocument->createElement(tmpCh);
>
> //**Not correctly released
> m_idRoot->release();
>
> Sleep(10);
> }
>
> Why?
> Is it a bug?
>
> I notice that the DOMDocumentImpl heap increase its size
>
>
>
>
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
Gareth Reakes, Managing Director Parthenon Computing
+44-1865-811184 http://www.parthcomp.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]