Aleš Trček wrote:
I don't think you understand, it's not that typeInfo->getTypeName() returned 0,
the problem is that the call to typeInfo->getTypeName() causes illegal instruction.
As I said, typeInfo is not NULL, however accessing any of its members results
in crash. The same applies for code that gets called in DOMDocumentImpl.cpp and
in my sample code.
Returning 0 would be the correct behavior in my opinion, and then I wouldn't
have any problems.
I'm sure that passing this returned 0 to std::cout is also a problem in
your code. And you didn't point where your sample code got the crash in
the previous message.
I'd try your sample code on Windows and get no crash in the getTypeName
call (#define MakeXMLCh(a) xercesc::XMLString::transcode(a) has been used)
If you are sure that the crash occured inside the getTypeName call on
AIX then you could try to debug you app yourself to find the place of
corruption - there is not so much code to debug inside the
createElementNS method.
Good luck!
Vitaly