I guess this is more of a C++ question ....

As of now, the delete may not be a prob. But by invoking delete [] you are assuming 
that a new [] was used to allocate your string. May make  your code incompatible with 
other transcoders / versions of xerces etc...

-Vinayak

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 27, 2003 5:28 PM
> To: [EMAIL PROTECTED]
> Subject: Yet another XMLString::release question
> 
> 
> 
> Is there any advantage to calling release over simply calling delete?
> 
> For example:
> 
> char *pMsg = XMLString::transcode(m_Node->getNodeValue());
> XMLString::release(&pMsg);
> 
> versus
> 
> char *pMsg = XMLString::transcode(m_Node->getNodeValue());
> delete []pMsg;
> 
> 
> 
> 
> ---------------------------------------------------------------------
> 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