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 2002/01/29 23:09:39 UTC
DO NOT REPLY [Bug 6114] New: -
Memory leaks on iDOM 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=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: xerces-c-dev@xml.apache.org
ReportedBy: bhushank@wrq.com
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: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org