[b][red]This message was edited by sziszi81 at 2006-10-23 23:1:39[/red][/b][hr]
[b][red]This message was edited by sziszi81 at 2006-10-23 14:30:21[/red][/b][hr]
this is the declaration of TList:
MaxListSize = Maxint div 16;
PPointerList = ^TPointerList;
TPointerList = array[0..MaxListSize - 1] of Pointer;
TList = class(TObject)
That MaxListSize constant is 134217728, a Pointer is stored on 4 bytes
so a TPointerList is stored on 134217728 x 4 = 536870912 bytes????
That is 512 MB of memory!!! PPointerList in change only eats 4 bytes.
Is this a dynamic list for real?
Or how is this? Can anyone explain?