Hi everybody, I am getting crazy about a (small?) problem. I have created a class "MyClass" which contains a method called "DOMCreateNewDOMDocument" (see code extract below). This method should create a new DOMDocument, which can be processed. The method works fine when called the first time, but the second call leads to a crash when executing the "xchImpl = XMLString::transcode("Range");" command.
Do I have to delete or reset the DOMDocument or the DOMImplementation after the first usage? Can anybody help me???? Regards, Michael bool MyClass::DOMCreateNewDOMDocument( DOMDocument* &pDomDoc, TMM_String strRootNodeName, TMM_String strXSLTReference, CStringArray &straNamespacePrefixes, CStringArray &straNamespaceURIs, TMM_String strSchemaPath, TMM_Bool bUseNamespace, TMM_Bool bAddDefaultXSINamespace) { TMM_Bool bResult; TMM_String strTemp; //create new DOM implementation XMLCh* xchImpl; //fixme xchImpl = XMLString::transcode("Range"); //fixme DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(xchImpl); .... .... return bResult; } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]