[ http://issues.apache.org/jira/browse/XERCESC-1590?page=comments#action_12377410 ]
Alberto Massari commented on XERCESC-1590: ------------------------------------------ Hi Josef, please complete your bug report by: - providing the complete source code (given what you entered, it could well be that you are not deleting what you allocate, and run out of memory) - finding out what this exception is (usually removing the catch(...) instruction and running the code under the debugger works) - testing your code against the latest 2.7 version, and check if the exception still occurs Without these informations, this bug will be closed as "incomplete" Thanks, Alberto > Exception in DOMBuilder::parse() > -------------------------------- > > Key: XERCESC-1590 > URL: http://issues.apache.org/jira/browse/XERCESC-1590 > Project: Xerces-C++ > Type: Bug > Components: DOM > Versions: 2.3.0 > Environment: SuSE Linux > Reporter: Josef Mueller > > I use DOMBuilder::parse() to parse an XML file. > For the implementation I followed the Xerces example DOMCount. > Sometimes it happens that DOMBuilder::parse() throws an exception which is > caught in catch (...), so it is not an XMLException and not an DOMException. > If the exception is thrown once, then it is thrown for any subsequent call of > DOMBuilder::parse() for every XML file. > After restart of the process the parsing operation succeeds for every XML > file which caused an error before. > I'm thankful for any hints to find the reason of this behaviour. > Here are some lines of implementation (try-catch omited): > XMLPlatformUtils::Initialize(); > ... > DOMImplementation *impl = > DOMImplementationRegistry::getDOMImplementation(gLS); > DOMBuilder *parser = > ((DOMImplementationLS*)impl)->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, > 0); > ... > // xmlBuf contains the XML data > MemBufInputSource* isource = new MemBufInputSource((const > XMLByte*)xmlBuf.c_str(), > strlen(xmlBuf.c_str()), > bufId, > false); > ... > parser->parse(Wrapper4InputSource(isource, false)); > ... > XMLPlatformUtils::Terminate(); -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
