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 "Heeg, Michael" <He...@fev.de> on 2004/09/10 11:45:23 UTC
Question concerning XMLCh*
Hi everybody,
simple question: do I have to call the "XMLString::release()" method when an
XMLCh* pointer is not used anymore?
If yes: what may happen if I do not call this method?
Example code:
XMLCh* xchImpl = NULL;
xchImpl = XMLString::transcode("Range");
DOMImplementation* impl =
DOMImplementationRegistry::getDOMImplementation(xchImpl);
XMLString::release(&xchImpl); //is this necessary?
Thanks for your reply,
Michael
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: Question concerning XMLCh*
Posted by Milan Tomic <mi...@setcce.org>.
> If yes: what may happen if I do not call this method?
You will have memory leaks. If you do not restart your app for a long
time it will use all RAM you have.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org