> I have written a class called "MyXMLParser", it has many member > fucntions to perform Xalan Transformation and so on. > > I get this error after I exit from my application. > > Assertion failed: s_initMemoryManager!= 0, file
That means you've called XalanTransformer::terminate() twice, without an intervening call to XalanTransformer::initialize(). > I have called the XalanTransformer::terminate in the destructor of the > "MyXMLParser" class and initialise is done in the constructor. XMLPlatformUtils::Initialize() and XalanTransformer::initialize() should be called _once_ after your application starts, but before you create any Xerces-C or Xalan-C objects. XalanTransformer::terminate() and XMLPlatformUtils::Terminate() should be called _once_ when your application is about to terminate, _after_ you have destroyed any Xerces-C and Xalan-C objects. Clearly, making these calls in the constructor and destructor of your class is a bad idea if you will have more than one instance of this class. Dave --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
