Hi Sergei,
Fons fixed this problem in our development version.
The notes say:
- TVector: fixed a problem in ResizeTo(). When reducing a vector size
by less than 7/8 of the original the memory is not actually recuperated.
However, the real (old) memory size was not correctly saved in this
case and wronly passed to the ReAlloc() method in case the vector
had to be grown. This caused warning messages in CustomReAlloc2().
We are currently discussing if we come with a consolidation
release 2.23/10 before Christmas or not. If we decide so,
it will appear before December 17 when CERN closes until
January 3.
Rene Brun
On Wed, 8 Dec 1999, Sergei Avvakumov wrote:
>
> Hi,
>
> I've already reported this warning/error message, but it still persists
> in 2.23/09. The following macro:
>
> {
> Int_t length;
> TVector vector(100);
> for (Int_t i = 0; i < 1000; i++)
> {
> // cout << "Event " << i << endl;
> length = (Int_t)(100*gRandom->Rndm(1)+1);
>
> vector.ResizeTo(length);
> }
> }
>
>
> Produces output:
>
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
> CustomReAlloc2: oldsize != size
>
>
> Thanks,
>
> Sergei Avvakumov
>
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:44 MET