If you are using the debug multithreaded DLL you need to build your own copy
of xerces with debug DLL. The shipped binaries use the non-debug
multithreaded DLL runtime and that uses a different allocator. The debug C
runtime cannot "delete" a pointer "new"-ed by the release C runtime.

-----Original Message-----
From: Vijay Ganapati [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 26, 2002 3:29 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: Faulty documentation in header of XMLString.h??


I sure am building it as Debug Multithreaded DLL (one of those things i do
when i start a new project is religiously do this and also get rid of
smart-ass precompiled header settings)

It is possible that since i just used the zipped
binaries off the bat, (which probably have just the release
versions??) that COULD be a problem. But have you tried this and does it
work fine??!!

----- Original Message -----
From: "David Schulze" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 26, 2002 1:11 PM
Subject: RE: Faulty documentation in header of XMLString.h??


> If using Win32 verify that you are building as MultiThreaded DLL (or Debug
> MultiThreaded DLL)
>
> -----Original Message-----
> From: Vijay Ganapati [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 26, 2002 4:10 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: Faulty documentation in header of XMLString.h??
>
>
> When i do
>
> char * pmychar =
>
XMLString::transcode(pDOMNamedNodeMap->getNamedItem(L"id")->getNodeName());
>
> then, going by the documentation, i should delete pmychar so:
>
> delete[] pmychar;
>
> However it crashes, and i suspect the pmychar returned is not dynamically
> allocated as the documentation seems to assert??
>
>
> ---------------------------------------------------------------------
> 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]
>
>


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