Re: [ROOT] ther IS !!! a bug in TArrayD !!

From: Pasha Murat (630)840-8237 FNAL (630)859-3463 home (murat@murat.fnal.gov)
Date: Sun Oct 07 2001 - 00:46:03 MEST


Joe: I ran the following test script 

void test_tarrayd(int n=100) {
  for (int i=0; i<n; i++) {
    TArrayD* Test=new TArrayD(1000);
    delete Test;
  }
}

using ROOT 3.01/06 RH Linux 6.1/GCC-2.95 several times
with n=1000000. The test took 20 sec CPU time total and I didn't 
observe any increase in the process size as reported by 'top'.
So I believe that your problem is application- or 
architecture-specific rather than related to ROOT's TArray's.
I suggest you running the same test and watching the memory 
consumption - this would allow to isolate the problem fairly
easily.
					-best, Pasha

joe robe wrote:
> 
> once again I have trouble in my program and tracked it
> down to TArrayD.
> 
> In debug mode there where some strange brekapoints
> called, although I havent set any ! I looked into the
> groups and w2k and nt are setting some check bytes on
> each allocated block and verify if something changed
> when releasing it. if so (memory overridden) debug
> breakpoint is called.
> 
> So this line calls this breakpoint which fits
> perfectly into my observation that TArrayD is LEAKING
> !
> 
>         TArrayD* Test=new TArrayD(100);
>         delete Test;
> 
> Joe
> 
> __________________________________________________
> Do You Yahoo!?
> NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month.
> http://geocities.yahoo.com/ps/info1



This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:51:02 MET