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=6367>. 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=6367 memory leak parsing xml document ------- Additional Comments From [EMAIL PROTECTED] 2002-02-12 16:59 ------- I appear to be having a similar problem with the IDOMParser. I built a DLL that parses XML messages. Once initialized, it reuses the same IDOMParser object. Each time I call parser->parse(), the applications private bytes increases and the system memory decreases. I recreated this with the IDOMPrint sample by placing the call to parse() in a loop and monitoring the IDOMPrint and system memory using Win NT performance monitor (permon.exe). It appeared that each call to parse() increased the IDOMPrint private bytes by 65536 (64K). Here's how I modified IDOMPrint (also had to include windows.h and uncheck "Disable language extensions", /Za): try { bool done = false; while (!done) { parser->parse(gXmlFile); if (::MessageBox(NULL, "Continue?", "IDOMPrint", MB_YESNO) == IDNO) done = true; } } I can workaround the problem by creating a new parser object each time I want to parse a message, but I prefer not to for performance reasons. Thanks [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
