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 "Racine, Michel" <mi...@hp.com> on 2002/08/08 02:01:13 UTC
Memory leaks: How to delete the result of a transcode ?
Hi.
It's a question about Xerces 1.6.0, Win32 platform.
I am using transcode on the XMLString object, and documentation says to delete the resulting char *. The sample apps generally use delete [] pointer, or delete pointer.
But my project doesn't seem to like it at all. In MSDEV, when I try to use delete, delete [] or free(), I get a heap error. And I know my application is leaking like crazy since I grow 13MB an hour.
Am I looking for the right thing to deallocate ? I have gone through the sample apps and the doc, and everything seems to be clean. Just the transcode<->delete doesn't seem to work out as good.
If I missed the documentation where this is explained, I apologize. Please point me to the right direction.
Thanks.
Michel Racine
Computer System Analyst
Hewlett Packard Storage Works
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org