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.
Thanks a lot.
Kevin.