There is a version of XMLString::transcode that allows the caller to pass in a buffer. I would suggest using this.
Samar Lotia -----Original Message----- From: Alex Brown [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 9:29 AM To: '[EMAIL PROTECTED]' Subject: How to delete memory allocated by XMLString::transcode The docs say: "NOTE: The returned buffer is dynamically allocated and is the responsibility of the caller to delete it when not longer needed." But what function should be used for deleting the buffer? There's no guarantee (is there?) that the delete[] I might be using properly corresponds to the new[] that Xerces has used. Shouldn't there be a static method XMLString::freeBuffer to do this safely? - Alex. --------------------------------------------------------------------- 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]
