You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "Ricardo (JIRA)" <xe...@xml.apache.org> on 2015/01/25 11:12:34 UTC

[jira] [Closed] (XERCESC-2042) SAX2XMLReaderImpl::cleanUp() »» access violation when call _fcloseall();

     [ https://issues.apache.org/jira/browse/XERCESC-2042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ricardo closed XERCESC-2042.
----------------------------
    Resolution: Not a Problem

c++ rule issue not xerces-c issue

> 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-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org