http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1599 *** shadow/1599 Wed May 2 07:50:02 2001 --- shadow/1599.tmp.14265 Wed May 9 14:29:59 2001 *************** *** 2,11 **** | Memory Exception in DOM_NodeList::getLength() | +----------------------------------------------------------------------------+ | Bug #: 1599 Product: Xerces-C | ! | Status: NEW Version: 1.4 | ! | Resolution: Platform: PC | ! | Severity: Normal OS/Version: | ! | Priority: Component: DOM | +----------------------------------------------------------------------------+ | Assigned To: [EMAIL PROTECTED] | | Reported By: [EMAIL PROTECTED] | --- 2,11 ---- | Memory Exception in DOM_NodeList::getLength() | +----------------------------------------------------------------------------+ | Bug #: 1599 Product: Xerces-C | ! | Status: RESOLVED Version: 1.4 | ! | Resolution: WONTFIX Platform: PC | ! | Severity: Normal OS/Version: All | ! | Priority: High Component: DOM | +----------------------------------------------------------------------------+ | Assigned To: [EMAIL PROTECTED] | | Reported By: [EMAIL PROTECTED] | *************** *** 17,20 **** DOM_NodeList nodeList; nodeList.getLength(); ! causes a memory exception. --- 17,27 ---- DOM_NodeList nodeList; nodeList.getLength(); ! causes a memory exception. ! ! ------- Additional Comments From [EMAIL PROTECTED] 2001-05-09 14:29 ------- ! The error comes from a misunderstanding of how the API works. DOM_NodeList, ! like any other DOM_ object, is just a smart pointer. Until it is actually ! assigned to something else it is null. It is therefore no surprise that ! dereferencing it leads to an exception. ! So, the solution is: Don't do that! :-) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
