Xiao, Ke wrote:
Hi,I just rebuild Xerces2.7 and Xalan1.10 on AIX. When I try to initialize Xalan, it asert in XalanMemoryManagement.cpp line 73 in function XalanMemMgrs::getDefaultXercesMemMgr(). It complain for the XMLPlatformUtils::fgMemoryManager is NULL. However my code is like: { ....... printf("Init Xerces.\n"); XMLPlatformUtils::Initialize(); printf("fgMemoryManager is:0x %x=======\n", (long)XMLPlatformUtils::fgMemoryManager); printf("Init Xalan.\n"); XalanTransformer::initialize(); printf("End Init Xalan.\n"); .... } The output is : Init Xerces. fgMemoryManager is:0x 1013b070======= Init Xalan. Assertion failed: ptr != 0, file /home/kxiao/Xerces_Xalan/Xalan110/xml-xalan/c/src/xalanc/PlatformSupport/XalanMemoryManagement.cpp, line 73 Can somebody help me on this? The same code works on other UNIX platforms like Solaris/Linux/HP-UX.
I've never seen this problem before, and I cannot reproduce it on my version of AIX. Are you sure you've linked your application with the same version of Xerces-C that Xalan-C was linked with?
Dave
