If you call transcode(pIn), you must release the returned buffer.  If you call 
transcode(pIn, pOut, nOut), then Xerces will "reuse" the buffer you give it.

Adam Heinz
Senior Software Developer
Exstream Software



-----Original Message-----
From: Sean Kelly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 26, 2004 2:00 PM
To: [EMAIL PROTECTED]
Subject: RE: Repost: Xerces XML performance problems


On Wed, 26 May 2004, Adam Heinz wrote:
>
> These lines leak memory.  If you don't pass an output buffer to transcode, you need 
> to XMLString::release() the returned buffer.

Something I wasn't sure on from the documentation.  Does transcode reuse
the same buffer and grow as needed or does it allocate a new buffer for
each call?  I'm wondering if I have to call release every time I call
transcode or just during cleanup.

Sean

---------------------------------------------------------------------
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]

Reply via email to