Mike Ellery wrote:


David Bertoni wrote:


However, you should be very careful about calling XalanTransformer::ICUCleanup(), because it can cause problems. Please read the documentation about static cleanup of the ICU, which is documented here:

http://icu.sourceforge.net/apiref/icu4c/uclean_8h.html#93f27d0ddc7c196a1da864763f2d8920

Xalan-C does not take care of calling u_init() for you -- you must do it yourself.



Thanks for the advice. I actually have the call to ICUCleanup only because it was in one of the examples I looked at. I probably don't need it (I don't use anything from ICU in my code), but how would I tell for sure whether or not I need this? Does it depend on my code or does it depend on how Xalan was built?

If Xalan was built with ICU support, and you are worried about releasing any memory the ICU has cached, then you'll need it. If Xalan was built without ICU support, then it's a no op.

Dave

Reply via email to