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

Memory leak when creating nodes





------- Additional Comments From [EMAIL PROTECTED]  2001-11-14 18:18 
-------
Tinny:

I post your program and run in VC 6.0 under WINDOWS NT 4.0 workstation, the 
xerces are 1.5.2 debug and release version, all of them report memory leaks.

This is the report for xerces-c_1_5_2.dll:

[I] Starting Purify'd domtree.exe at 2001-11-15 10:10:15
[I] Starting main
[I] Summary of all memory leaks... {52088 bytes, 5 blocks}
[W] MLK: Memory leak of 116 bytes from 1 block allocated in strcat
    Distribution of leaked blocks
       116 bytes from 1 block of 116 bytes (0x02020f70) 
    Allocation location
    calloc         [msvcrt.dll]
    strcat         [msvcrt.dll]
    ???            [ntdll.dll ip=0x77f51c97]
    ???            [ntdll.dll ip=0x77f511f6]
                KiUserApcDispatcher [ntdll.dll]
    [W] MLK: Memory leak of 320 bytes from 1 block allocated in domtree.exe
            Distribution of leaked blocks
                   320 bytes from 1 block of 320 bytes (0x02920598) 
            Allocation location
                HeapAlloc      [KERNEL32.dll]
                ???            [domtree.exe ip=0x00404a7a]
                ???            [domtree.exe ip=0x0040a059]
    [I] MPK: Potential memory leak of 16836 bytes from 1 block allocated in 
domtree.exe
    [W] MLK: Memory leak of 2048 bytes from 1 block allocated in domtree.exe
            Distribution of leaked blocks
            Allocation location
                HeapAlloc      [KERNEL32.dll]
                ???            [domtree.exe ip=0x00404702]
                ???            [domtree.exe ip=0x0040a059]
    [I] MPK: Potential memory leak of 32768 bytes from 1 block allocated in 
domtree.exe
[I] Exiting with code 0 (0x00000000)
[I] Program terminated at 2001-11-15 10:10:22



This is the report for xerces-c_1_5_2D.dll:
[I] Starting main
[I] Summary of all memory leaks... {16836 bytes, 1 block}
    [W] MLK: Memory leak of 16836 bytes from 1 block allocated in 
DOM_NodeList::=(DOM_NullPtr const*)
            Distribution of leaked blocks
            Allocation location
                new(UINT,int,char const*,int) [dbgnew.cpp:46]
                DOM_NodeList::=(DOM_NullPtr const*) [xerces-c_1_5_2D.dll]
                DOM_NodeList::=(DOM_NullPtr const*) [xerces-c_1_5_2D.dll]
                DOM_NodeList::=(DOM_NullPtr const*) [xerces-c_1_5_2D.dll]
                main           [test.cpp:44]
                    
                                for(int j = 0; j < 50; j++)
                                {
                 =>                 DOM_Element childElem = doc.createElement
(CHILD);
                                    nodeElem.appendChild(childElem);
                                }
                            }
                mainCRTStartup [crt0.c:206]
[I] Exiting with code 0 (0x00000000)
[I] Program terminated at 2001-11-15 10:17:48

My workstation is Simplified Chinese version build 1381 service pack 5, purify 
is from rational 2000.

Larry

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

Reply via email to