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=6114>.
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=6114

Memory leaks on iDOM getElementsByTagName() 

           Summary: Memory leaks on iDOM getElementsByTagName()
           Product: Xerces-C++
           Version: 1.6.0
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: DOM
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


My memory manager is complaining that getElementsByTagName() is causing couple 
of memory leaks. I have seen three incarnations of the problems, stack trace 
follows. 

After I reported this error, I found out that I was mixing both the debug and 
non-debug version of the runtime DLL. The last two stack traces are when the 
CRT versions are mixed. Changing the CRT to just the debug version did not 
eliminate the problem but it changed the location of the leak, as shown by the 
first stack trace.

Stack 1
--------
new(UINT,int,char const*,int) [dbgnew.cpp:46]
DOMParser::startIntSubset(void) [xerces-c_1_6_0D.dll]
IDOM_NodeList*  constants=xmlDoc->getElementsByTagName(L"Constant")[myCode]

Stack 2
--------
new(UINT)      [MSVCRT.dll]
IDDocumentImpl::getDeepNodeList(IDOM_Node const*,WORD const*)[xerces-
c_1_6_0.dll]
IDOM_NodeList*  constants=xmlDoc->getElementsByTagName(L"Constant")[myCode]

Stack 3
------------
new(UINT)      [MSVCRT.dll]
XMLString::replicate(WORD const* const) [xerces-c_1_6_0.dll]
IDOM_NodeList*  constants=xmlDoc->getElementsByTagName(L"Constant")[myCode]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to