Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-2042

SAX2XMLReaderImpl::cleanUp() »» access violation when call _fcloseall();

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            Unassigned Unassigned
            ricardok1 Ricardo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified