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 "Ronald Lamprecht (JIRA)" <xe...@xml.apache.org> on 2006/02/17 18:42:33 UTC

[jira] Created: (XERCESC-1563) DOMNodeList::~DOMNodeList() does not remove instance from cache

DOMNodeList::~DOMNodeList() does not remove instance from cache
---------------------------------------------------------------

         Key: XERCESC-1563
         URL: http://issues.apache.org/jira/browse/XERCESC-1563
     Project: Xerces-C++
        Type: Bug
  Components: DOM  
    Versions: 2.7.0    
 Environment: OS independent, at least Xerces 2.7.0 and trunk 3.0
    Reporter: Ronald Lamprecht


A DOMNodeList retrieved by a getElementsByTagNameNS () call can only be "released" by the public ~DOMNodeList() destructor. This destructor just deletes the object, but does not remove it from the cache. Any further retrieval of a DOMNodeList that describes the same Nodes as the first one is answered with the address of the deleted DOMNodeList from the cache instead of a new created DOMNodeList! This is of cause a potential source for memory access exceptions.

Ronald

-- 
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: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Closed: (XERCESC-1563) DOMNodeList::~DOMNodeList() does not remove instance from cache

Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov closed XERCESC-1563.
------------------------------------

    Resolution: Invalid

I believe Xerces-C++ simply reuses the object from the documen't memory pool. 

> DOMNodeList::~DOMNodeList() does not remove instance from cache
> ---------------------------------------------------------------
>
>                 Key: XERCESC-1563
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1563
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 2.7.0
>         Environment: OS independent, at least Xerces 2.7.0 and trunk 3.0
>            Reporter: Ronald Lamprecht
>
> A DOMNodeList retrieved by a getElementsByTagNameNS () call can only be "released" by the public ~DOMNodeList() destructor. This destructor just deletes the object, but does not remove it from the cache. Any further retrieval of a DOMNodeList that describes the same Nodes as the first one is answered with the address of the deleted DOMNodeList from the cache instead of a new created DOMNodeList! This is of cause a potential source for memory access exceptions.
> Ronald

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org