[ https://issues.apache.org/jira/browse/XERCESC-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ricardo updated XERCESC-2042: ----------------------------- Description: Hi there, When I run (...) XMLPlatformUtils::Terminate(); cout << "Closing all resources..." << endl; _fcloseall(); // <<<< Here gives error Error appear to be because is called: void SAX2XMLReaderImpl::cleanUp() { fMemoryManager->deallocate(fAdvDHList); <<<< Error here delete fScanner; (...) and fAdvDHList is NULL and create exception: fAdvDHList 0x000000b230b36940 {0x0000000000000000 <NULL>} xercesc_3_1::XMLDocumentHandler * * "Access violation reading location 0xFFFFFFFFFFFFFFFF." The following code also breaks. if I use the error is gone: gp.release(); (auto_ptr<XMLGrammarPool> gp...) parser.release(); (auto_ptr<SAX2XMLReader> parser(create_parser(gp.get()));-.....) Should not be included when calling XMLPlatformUtils::Terminate ? Thanks Ricardo was: Hi there, When I run (...) XMLPlatformUtils::Terminate(); cout << "Closing all resources..." << endl; _fcloseall(); // <<<< Here gives error Error appear to be because is called: void SAX2XMLReaderImpl::cleanUp() { fMemoryManager->deallocate(fAdvDHList); <<<< Error here delete fScanner; (...) and fAdvDHList is NULL and create exception: fAdvDHList 0x000000b230b36940 {0x0000000000000000 <NULL>} xercesc_3_1::XMLDocumentHandler * * "Access violation reading location 0xFFFFFFFFFFFFFFFF." The following code also breaks. Thanks Ricardo > SAX2XMLReaderImpl::cleanUp() »» access violation when call _fcloseall(); > -------------------------------------------------------------------------- > > Key: XERCESC-2042 > URL: https://issues.apache.org/jira/browse/XERCESC-2042 > Project: Xerces-C++ > Issue Type: Bug > Components: SAX/SAX2, Validating Parser (XML Schema) > Affects Versions: Nightly build (please specify the date), 3.1.1 > Environment: Windows 8.1 x64 > Reporter: Ricardo > Priority: Trivial > Labels: _fcloseall();, access, violation > Original Estimate: 1h > Remaining Estimate: 1h > > Hi there, > When I run > (...) > XMLPlatformUtils::Terminate(); > cout << "Closing all resources..." << endl; > _fcloseall(); // <<<< Here gives error > Error appear to be because is called: > void SAX2XMLReaderImpl::cleanUp() > { > fMemoryManager->deallocate(fAdvDHList); <<<< Error here > delete fScanner; > (...) > and fAdvDHList is NULL and create exception: > fAdvDHList 0x000000b230b36940 {0x0000000000000000 <NULL>} > xercesc_3_1::XMLDocumentHandler * * > "Access violation reading location 0xFFFFFFFFFFFFFFFF." > The following code also breaks. > if I use the error is gone: > gp.release(); (auto_ptr<XMLGrammarPool> gp...) > parser.release(); (auto_ptr<SAX2XMLReader> > parser(create_parser(gp.get()));-.....) > Should not be included when calling XMLPlatformUtils::Terminate ? > Thanks > Ricardo -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org For additional commands, e-mail: c-dev-h...@xerces.apache.org