[ https://issues.apache.org/jira/browse/XALANC-736?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13569696#comment-13569696 ]
Steven J. Hathaway commented on XALANC-736: ------------------------------------------- NOTES http://xalan.apache.org/xalan-c/usagepatterns.html#xalantransformer The comments [1] [2] [3] pertain to The Xerces-C and Xalan-C libraries perform their own memory management. Objects created for an Xalan Transformer are owned by the factories and destroyed when the factories are destroyed, unless you instantiate your own ownership of the objects by explicitly removing them from the factories. [1] XalanTransformer::initialize(); causes static classes and veriables to be allocated. XalanTransformer::terminate(); may cause instance of xslException.getMessage() to be destroyed. This may cause std::cout << ((xslException.getMessage()).c_str()); to fail. [2] XSLTInputSource(...) is an an initializer that contains its own default memory management and therefore 'new' is not required. The objects returned by XSLTInputSource are owned by the XalanTransformer [3] delete xslIn; delete xmlIn; Terminating of the librararies usually destroys the transformer instances and anything found in their factories. --- > Assertion failure in debug mode > ------------------------------- > > Key: XALANC-736 > URL: https://issues.apache.org/jira/browse/XALANC-736 > Project: XalanC > Issue Type: Bug > Affects Versions: 1.11 > Environment: Visual Studio 2010 > Binary package of Xerces 3.1.1 > Binary package of Xalan 1.11.0 > Reporter: Claudia Baier > Assignee: Steven J. Hathaway > Attachments: 736.diff, XercesXalanDemo.zip > > > I have a problem running applications in debug mode. I try to process a xslt > file which includes > another xslt file. In release mode everything works fine. But in debug mode > the application > crashes with the message: > "Debug Assertion Failed! > ... > Expression: invalid null pointer" > This happens when I call > theXalanTransformer.transform(*parsedXML, *xslIn, std::cout); -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org For additional commands, e-mail: dev-h...@xalan.apache.org