Are you using a xerces binary built with VC++ 6? VC7 (i.e. .NET) has a different C runtime DLL.
Samar Lotia -----Original Message----- From: Zdenek Nemec [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 2:28 AM To: [EMAIL PROTECTED] Subject: transcode - old pain (deleting transcoded string) dear list, i found myself stuck again in XMLString::transcode( ), **after** following function (ie. in strX destructor ( deleting transcoded string) ) i'll get ( in VC7 on w2k box ) message: Unhandled exception at 0x1020a1fd (msvcr70d.dll) and break at dbgheap.c line 1154 please note i am **sure** i am using all my projects with Multi-threaded debug DLL (/MDd) same as project XercesLib -which created my xerces***.dll ( i have checked release/debug (aka /MD vs. /MDd ) too ) any hint? has this something to do with bug #11915 thank you in advance zdenek --example 'problem' func-- void myFunc( const XMLCh* value ) { strX tmp( value ); } // here the 'crash' --my strX class-- class strX { public: strX( const XMLCh* const toTranscode ) { if(!toTranscode) { _localForm=0; return; } _size=XMLString::stringLen( toTranscode ); _localForm=new char[_size+1]; XMLString::transcode( toTranscode, _localForm, _size+1 ); } ~strX() { delete[] _localForm; } const char* localForm() const { return _localForm; } private: char* _localForm; unsigned _size; }; --------------------------------------------------------------------- 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]
