[ http://nagoya.apache.org/jira/browse/XERCESC-848?page=history ]
Alberto Massari updated XERCESC-848:
------------------------------------
Priority: Major
> Deleting something returned by XMLString::transcode crashes when application is
> using the release build of Xerces-C++
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: XERCESC-848
> URL: http://nagoya.apache.org/jira/browse/XERCESC-848
> Project: Xerces-C++
> Type: Bug
> Components: Utilities
> Versions: 2.2.0
> Environment: Operating System: Windows NT/2K
> Platform: PC
> Reporter: Ever A. Olano
> Assignee: Xerces-C Developers Mailing List
>
> This is also a problem with 2.1.0. In fact, it's the first one I tried. I
> downloaded 2.2.0 in the hope that it would not have the same problem.
> The code at the bottom of this description consistently crashes on the 6th (or
> so) iteration of the loop if I'm linking with and using the Release build of
> Xerces-C++. But when I use the Debug build, it works fine.
> I am building a library that our customers will use and so will have to
> distribute certain DLLs including Xerces. I was content with just releasing
> the Debug dll but unfortunately, it seems to rely on msvcrtd.dll and
> msvcirtd.dll, which are not redistributable themselves.
> Here is the source code that will help you reproduce the problem:
> #include "stdafx.h"
> #include <xercesc/parsers/XercesDOMParser.hpp>
> #include <xercesc/util/PlatformUtils.hpp>
> int _tmain(int argc, _TCHAR* argv[])
> {
> XMLPlatformUtils::Initialize();
> for (int i = 0; i < 2000; ++i)
> {
> char s[10];
> sprintf( s, "%d", i );
> XMLCh *temp = XMLString::transcode( s );
> wprintf( temp );
> delete [] temp;
> }
> XMLPlatformUtils::Terminate();
> }
> Thanks,
> Ever
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]