I have simplified the problem...

 

I now do the following:

Check out http:/source.icu-project.org/repos/icu/icu/tags/release-3-8-1
of icu.

Check out revision 762403 of
http://svn.apache.org/repos/asf/xalan/c/trunk
<http://svn.apache.org/repos/asf/xalan/c/trunk> .

Unzip xerces-c-3.0.1-x86-windows-vc8.0.zip, and set XERCESCROOT
environment variable to the xerces unzip location.

Set ICUROOT environment variable to the location of the icu checkout.

Build ICU as win32 platform, debug configuration, using Visual Studio
2005.

Build Xalan as win32 platform, debug configuration, using Visual Studio
2005.

Try to run XalanTransform.exe.

 

Even though I have made no changes to the libraries, debug configuration
of XalanTransform has an assertion failure at line 145 of
XalanICUMessageLoader.cpp.

 

Any suggestions would be greatly appreciated,

 

Robert Goffena

Ball Aerospace & Technologies Corp.

2875 Presidential Dr. Fairborn, OH 45324-6269

Phone:  (937) 320-4096

Fax:  (937) 429-1687

Email:  rgoff...@ball.com 

________________________________

From: Goffena, Robert 
Sent: Tuesday, May 19, 2009 11:31 AM
To: 'xalan-c-users@xml.apache.org'
Subject: RE: XalanICUMessageLoader Assert Failure From Debug Build

 

Forgot to mention, I made the changes so I can build 64 bit in Visual
Studio 2005.

 

________________________________

From: Goffena, Robert [mailto:rgoff...@ball.com] 
Sent: Tuesday, May 19, 2009 11:28 AM
To: xalan-c-users@xml.apache.org
Subject: XalanICUMessageLoader Assert Failure From Debug Build

 

Hi all,

 

I get an assert failure when trying to execute Xalan code in debug mode.
Debug mode complains about PlatformSupport\XalanICUMessageLoader.cpp
line 145.

That line and the few above it are located in
XalanICUMessageLoader::XalanICUMEssageLoader(MemoryManager &theManager),
and look like the following:
m_localeBundle = ures_open(sPackageName, szLocal, &err);

If (!U_SUCCESS(err) || m_localeBundle ==0)

{

   Assert(0);

}

 

I checked out
http:/source.icu-project.org/repos/icu/icu/tags/release-3-8-1 of icu.

I checked out revision 762403 of
http://svn.apache.org/repos/asf/xalan/c/trunk.

I generated and applied the attached patches to allow building of 64 and
32 bit libraries and to allow the resulting libraries to coexist (ie:
instead of writing libraries to bin, I modified to write to
$(PlatformName)/$(ConfigurationName)).

I use the XalanICU solution.

 

Gentest.exe from icu seems to work in release and debug builds, if I
understand what gentest.exe does.

Threadtest.exe, XPathTest.exe and TestXSLT.exe, from Xalan debug build,
cause the aforementioned assert statement to fail.  Release builds of
those tests succeed.

 

 

Any ideas what I have done wrong?  Where I should look to fix this
problem?

 

Bob

 

 



This message and any enclosures are intended only for the addressee.
Please  
notify the sender by email if you are not the intended recipient.  If
you are  
not the intended recipient, you may not use, copy, disclose, or
distribute this  
message or its contents or enclosures to any other person and any such
actions  
may be unlawful.  Ball reserves the right to monitor and review all
messages  
and enclosures sent to or from this email address.



This message and any enclosures are intended only for the addressee.  Please  
notify the sender by email if you are not the intended recipient.  If you are  
not the intended recipient, you may not use, copy, disclose, or distribute this 
 
message or its contents or enclosures to any other person and any such actions  
may be unlawful.  Ball reserves the right to monitor and review all messages  
and enclosures sent to or from this email address.

Reply via email to