Thanks a lot for your reply. 

To make it clear, the issue happended in my own code to use Xerces/Xalan.

To generate the makefile, I use         ./runConfigure -p aix -c xlc_r -x xlC_r 
-b 64 -d

I just rebuild both Xerces2.7 and Xalan1.10. I tried the sample program Xalan 
under /bin and it works. However my own program still failed.

Any ideas?

Sincerely.

Kevin.




-----Original Message-----
From: David Bertoni [mailto:[EMAIL PROTECTED]
Sent: Monday, July 24, 2006 2:12 PM
To: xalan-c-users@xml.apache.org
Subject: Re: Xalan failed to initialize on AIX


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

Reply via email to