[ http://issues.apache.org/jira/browse/XERCESC-1554?page=all ]
Alberto Massari resolved XERCESC-1554:
--------------------------------------
Resolution: Invalid
You should not call "delete memBufIS" because you already created a
Wrapper4InputSource around it, and by default it takes ownership of the
specified InputSource (unless you add a second argument set to "false").
Same reason for the pDoc->release(); the parsed documents are owned by the
DOMBuilder and released when the DOMBuilder is released, unless you call
pBuilder->setFeature(XMLUni::fgXercesUserAdoptsDOMDocument, true) before
parsing.
> pure virtual function error
> ---------------------------
>
> Key: XERCESC-1554
> URL: http://issues.apache.org/jira/browse/XERCESC-1554
> Project: Xerces-C++
> Type: Bug
> Components: DOM
> Versions: 2.4.0
> Environment: Windows XP SP2
> Reporter: Eric Swanson
> Attachments: TestXercesProject.zip
>
> Our application is multi-threaded and com based on a win 32 platform.
> We have a function in our application that has a character string that is a
> correctly made xml string. When attempting to load it (xml string) into the
> xerces dom document, as this function is called, Xerces comes up with a pure
> virtual function error. The service needs to have several dom documents in
> existance at the same time on different threads. Is this possible using
> Xerces?
> When we upgraded to 2_7, the problem was worse. How can we ensure that each
> DOM document is separate from each other and not depended on the other
> document.
> What is the proper api calls to create a xerces dom document from a character
> array?
> Thanks
> Eric
--
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]