Hi all,

I am sorting out the final remaining memory issues in the 2.6 release
of Xerces-Perl. One issue that has come up is whether it is safe to
call delete on a DOMDocument pointer created by createDocument(). 

According to the API docs:

   Users must call the release() function when finished using any
   objects that were created by the DOMImplementation::createXXXX
   (e.g. DOMBuilder, DOMWriter, DOMDocument, DOMDocumentType).

If I use delete I can make the memory handling automatic, and hide it
from users of the Perl module - if release() must be used I have to
expose it to users of Xerces-Perl.

We've tested using delete and we have no current memory problems, but
what I'm worried about is how this will affect things in the future.

Please instruct.

Thanks,
jas.

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

Reply via email to