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 bu...@apache.org on 2001/12/18 15:59:22 UTC
DO NOT REPLY [Bug 1387] -
Null pointer to fImpl in DOM_Document::getElementsByTagName
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1387>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1387
Null pointer to fImpl in DOM_Document::getElementsByTagName
tng@ca.ibm.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Additional Comments From tng@ca.ibm.com 2001-12-18 06:59 -------
The DOM design in Xerces-C++ uses reference counting. Your code has
const DOMString* tag = new DOMString(str);
(gdb) n
ptr: SamplePublisher
139 DOM_NodeList* list = new DOM_NodeList();
:
*list = m_document.getElementsByTagName(tagName.c_str());
All these will screw up the reference counting. Please see Programming Guide:
http://xml.apache.org/xerces-c/program.html#DOMProgGuide for further detail.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org