You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Markus <ma...@mail.student.oulu.fi> on 2004/07/25 10:42:51 UTC

v1.7.0 and VS.NET 2003

Hello,

I have succesfully used code bits like

XMLCh* xmlChAttrName = XMLString::transcode( "Name" );
// process the string...
delete [] xmlChAttrName;

with v1.7.0 in MSVC6 environment.

But now that we've moved to VS.NET 2003 it
crashes on pretty much every call to delete []. 

Reading the FAQ I guess the problem occurs because
my app and xerces don't use the same runtime library
anymore.Right?

So, what are my choices to resolve this issue?

1. Upgrade xerces? To which version?

2. Build v1.7.0 with VS.NET? Don't have the
project files to do so....

Markus

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: v1.7.0 and VS.NET 2003

Posted by Vitaly Prapirny <ma...@mebius.net>.
Markus wrote:
> That would be ideal, yes. But:
> going from 1.7.0 to 2.0.0 is already difficult.
> We get a lot of "cannot instantiate abstract class"
> errors. And DOMString seems to be removed
> completely from 2.0.0.
You can find old DOM API (with DOMString) in
src\xercesc\dom\deprecated (but it is deprecated
so it would be better to try the new API).
> Also, do we need to build xerceslib in VS.NET
> for using it with our app? So far we've used
> the binaries from xerces distribution but those
> are built using MSVC6 as I understand it. Right?
Absolutely.

Good luck !


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: v1.7.0 and VS.NET 2003

Posted by Markus <ma...@mail.student.oulu.fi>.
That would be ideal, yes. But:
going from 1.7.0 to 2.0.0 is already difficult.
We get a lot of "cannot instantiate abstract class"
errors. And DOMString seems to be removed
completely from 2.0.0.

Also, do we need to build xerceslib in VS.NET
for using it with our app? So far we've used
the binaries from xerces distribution but those
are built using MSVC6 as I understand it. Right?

Markus

----- Original Message ----- 

> Hi,
> Markus wrote:
> > 1. Upgrade xerces? To which version?
> The latter one (2.5.0) is better :)
> And use XMLString::release instead of delete[].
> 
> Good luck !
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: v1.7.0 and VS.NET 2003

Posted by Vitaly Prapirny <ma...@mebius.net>.
Hi,
Markus wrote:
> 1. Upgrade xerces? To which version?
The latter one (2.5.0) is better :)
And use XMLString::release instead of delete[].

Good luck !


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org