Thanks a lot,
I thought about this when I started my parser but I forgot to implement such
tests then.
I'll try this and it should do the work !

Benoit


Alberto Massari-2 wrote:
> 
> Hi Benoit,
> the stack trace says that you are trying to assign a null pointer to a 
> std::string; this means that attrs.getValue(temp) returns NULL. Are you 
> sure you are looking at the right XML node? That's because 
> std::string::compare returns 0 when it matches the argument, and you 
> have reversed the logic of all the tests...
> 
> Alberto
> 
> 
> Il 27/07/2011 18:27, Benoit984 ha scritto:
>> Hi,
>> I have been desperatly trying to run a SAX parser for several days but it
>> fails crashing when in a call to XMLString::transcode.
>> I searched for the web mainly and in a more limited way on the
>> Xerces-c-user
>> forum but could not find a topic related to my problem...
>>
>> I am currently running an application compiled with MSDEV6 and the
>> Xerces-c
>> library I built from the xerces-c 2.8 sources.
>> My operating system is windows XP SP3.
>>
>> I provide an archive that contains:
>> - The code for my parser and the XmlLoader
>> - The stack trace obtained in the debugger
>> - The output of the application
>> - The message given by the error window
>> - The xml file to parse
>>
>> Please let me know if you need further details on my application.
>> I'll try to get a more detailled stacktrace about xerces and system libs.
>>
>> Thanks
>>
>>
>> Benoit
>>
>> PS: I am aware of some eventual
>> http://old.nabble.com/file/p32149425/XercesC_problem.zip
>> XercesC_problem.zip
>> memory leaks in my parser at the moment, I'll try to fix it once I'll be
>> able to run the application without crashing
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Crash-within-XMLString%3A%3Atranscode-tp32149425p32154284.html
Sent from the Xerces - C - Users mailing list archive at Nabble.com.

Reply via email to