Hi,
I am a XalanC newbie but I try to do a simple loop with Xalan:
//PlatformUtils & XalanTransformer Init only once
//first test :
For (i=0; i < 10000;i++) {
XalanDOMString *test = new XalanDOMString();
test.assign ("Hello");
delete test;
}
//second test
for (i=0; i < 10000;i++) {
XalanDOMString *test = new XalanDOMString();
// test.assign ("Hello");
delete test;
}
//PlatformUtils & XalanTransformer terminate only once
The both tests work fine, but if I observe the memory used by the process,
the first test increase continuously the memory used and never release it
before end of process.
The second test does'nt increase the memory (wich is stable during the
loop).
I precise that I tried the both tests on Linux and MSWindows.
Linux :
(i686) Mandrake 8.0, gcc 2.96, libstdc++.so.2.9, Xalan1.2, Xerces 1.5.1
MSWindows :
(i686) W2000 VC++ 6.0, same Xalan and Xerces
Is it possible that the ultra-used XalanDOMString will be corrupted ??
Olivier Moises
Generic Concept
94, Av Jean Lebas
59100 Roubaix
e-mail: [EMAIL PROTECTED]