You mentioned that the problem occurs when you compile release code. When
you build release code, link only to release libraries (Xerces, compiler
runtimes, etc). When you build debug code, link only to debug libraries. If
you're building release code and linking to the debug version of Xerces
and/or the compiler runtime, that's the cause of your problem.

-----Original Message-----
From: Iggeres [mailto:[EMAIL PROTECTED]
Sent: Monday, March 24, 2003 9:42 AM
To: [EMAIL PROTECTED]
Subject: Re: Question


i read the faq and it says only that I must use Multithreaded DLL and debug
Multithreaded DLL.
I'm using that configuration.
Is there any api function as XMLString::release in xerces 2.1?

----- Original Message -----
From: "Jesse Pelton" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 10:14 AM
Subject: RE: Question


> I'd wager you're running on Windows and mixing runtime library versions.
> Check the FAQ.
>
> -----Original Message-----
> From: Iggeres [mailto:[EMAIL PROTECTED]
> Sent: Monday, March 24, 2003 7:59 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Question
>
>
> I'm using xercesc 2.1 and XMLString::release doesn't exist.
> What api function I must use?
> I saw some sample programs in the distribution and they use delete.
>
> ----- Original Message -----
> From: "Vitaly Prapirny" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, March 23, 2003 8:02 AM
> Subject: Re: Question
>
>
> > 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]
>


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