Which are your xercesc version, OS, compiler ?

Memory manager used by xercesc library can be different from
memory manager your code using. And buffer allocated in one
memory manager can not be freed by another.

In xercesc 2.2 you may call XMLString::release(...) for
safely deleting the buffer returned by XMLString::transcode.

> Iggeres wrote:
> 
> Hi,
> I'm using xerces and I have a problem:
> I'm creating a buffer using:
> 
>  XMLCh *search = XMLString::transcode(":");
> 
> and then destroy the buffer with
> 
> free((void *) search);
> 
> I know that it's not the best way and it is not exception safe, but it
> was working until I compiled in release my applicacion. Then, it thru
> a exception.
> I tried to change it using
> 
>  delete [] search;
> and I have the same problem.
> I know that I can use DOMString and it has to work, but I want to know
> what is going on with this code.
> 
> Tanks,
> 
> Iggeres.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to