1. If you get the document pointer by calling adoptDocument instead of getDocument you can delete the parser. 2. No you do not have to delete pinters you "get" only if you "adopt" pointers. General idea. If you didn't make the _new_ then don't do the _delete_.
Regards / Erik -----Original Message----- From: Vijay Ganapati [mailto:[EMAIL PROTECTED]] Sent: den 3 oktober 2002 02:06 To: [EMAIL PROTECTED] Subject: Parser pointers, Node pointers, leaks etc 1. Is it necessary to keep XercesDOMParser around or can one just delete it, after retrieving the DOM Document ? or would there be other exceptions/etc somewhere else in the implementation? Of course, one may need to persist to the same file later like myserializer->writeNode(myTarget, *mynode); {mynode is any kind of node} 2. In msxml, it is necessary to "release" a pointer after getting it, whatever be kind of node. Is there any kind of analogy here, that a DOMNode * needs to be "deleted" after using it - i didnt see anything about this in the documentation. ie, is delete pMyNode; necessary to avoid leaks? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
