http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2426

*** shadow/2426 Mon Jul  2 22:10:57 2001
--- shadow/2426.tmp.2428        Mon Jul  2 22:10:57 2001
***************
*** 0 ****
--- 1,62 ----
+ +============================================================================+
+ | memory leak in parser                                                      |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2426                        Product: Xerces-C                |
+ |       Status: NEW                         Version: 1.5                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Normal                   OS/Version: Other                   |
+ |     Priority: Other                     Component: DOM                     |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                  |
+ |  Reported By: [EMAIL PROTECTED]                                         |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ Hi,
+ 
+ I am reasonably sure that this is a valid bug, as I've had a friend check if 
+ this happens on his machine, and it does...
+ 
+ Platform: windows 2000
+ Xerces version: 1.5
+ 
+ //code sample
+ // standard libraries
+ #include <windows.h>
+ #include <wchar.h>
+ #include <iostream>
+ 
+ // these includes are used by XERCES DOM
+ #include <util/PlatformUtils.hpp>
+ #include <parsers/DOMParser.hpp>
+ 
+ using namespace std;
+ 
+ void main(void)
+ {
+   // init XML
+   XMLPlatformUtils::Initialize();
+   for (int i = 0;     i < 100; i++)
+   {
+     DOMParser parser;
+     parser->parse("this.xml")
+     cout << i << endl ;
+   }
+   
+   // terminate XML
+   XMLPlatformUtils::Terminate();
+ }
+ 
+ I did cut down this a tiny bit to make it more readable,but I'm sure that it's 
+ pretty obvious.  It would appear that the xml document is not being released at 
+ all... I tried changing the parser to a pointer and newing / deleting it, but 
+ it didn't fix the problem.  
+ 
+ If I try this same example under version 1.4 of xerces instead of 1.5, 
+ everything is released propperly.  Is there anything that I'm missing??
+ 
+ Thanks for your help.
+ 
+ Paul Harris

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

Reply via email to