hi all,
        Getting Segmentation fault from

*              xercesc_2_7::SAXParseException::~SAXParseException ()

      i am using the following code snippnet ...
<<
XERCES_CPP_NAMESPACE::SAXParseException temp(NULL,NULL,NULL,0,0);*
/>>

Calling the below constructor , i am no specifying any memory manager
, the intension here is to use the default memory manager ...

Request for your view on this ....

SAXParseException::SAXParseException ( const
XMLCh<http://xerces.apache.org/xerces-c/apiDocs-3/Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a>*const
*message*,

const 
XMLCh<http://xerces.apache.org/xerces-c/apiDocs-3/Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a>*const
*publicId*,

const 
XMLCh<http://xerces.apache.org/xerces-c/apiDocs-3/Xerces__autoconf__config_8msvc_8hpp.html#fae8f92d83170d97f757f704eca7f52a>*const
*systemId*,

const 
XMLFileLoc<http://xerces.apache.org/xerces-c/apiDocs-3/Xerces__autoconf__config_8msvc_8hpp.html#dd2d542a6583db767febf57446daa50d>
  *lineNumber*,

const 
XMLFileLoc<http://xerces.apache.org/xerces-c/apiDocs-3/Xerces__autoconf__config_8msvc_8hpp.html#dd2d542a6583db767febf57446daa50d>
  *columnNumber*,

MemoryManager<http://xerces.apache.org/xerces-c/apiDocs-3/classMemoryManager.html>*const
*manager* = 
XMLPlatformUtils::fgMemoryManager<http://xerces.apache.org/xerces-c/apiDocs-3/classXMLPlatformUtils.html#97eff0d9fff3567bea3acd3ca4d95252>

)



Here is the constructor implementation ...


SAXParseException::SAXParseException(const  XMLCh* const    message
                                    , const XMLCh* const    publicId
                                    , const XMLCh* const    systemId
                                    , const XMLSSize_t      lineNumber
                                    , const XMLSSize_t      columnNumber
                                    , MemoryManager* const  manager) :
    SAXException(message, manager)
    , fColumnNumber(columnNumber)
    , fLineNumber(lineNumber)
    , fPublicId(XMLString::replicate(publicId, manager))
    , fSystemId(XMLString::replicate(systemId, manager))
{
}




Below is the Destructor ..

SAXParseException::~SAXParseException()
{

    fMemoryManager->deallocate(fPublicId);//XMLString::release(&fPublicId);
    fMemoryManager->deallocate(fSystemId);//XMLString::release(&fSystemId);

}

Thanks
Anil

Reply via email to