[fpc-devel]Bad heap manager?

Nico Aragon nico at canaldelphi.org
Sun Mar 3 03:48:47 CET 2002


>>could try overriding NewInstance to use such a memory pool, instead of
>>taking the memory from the global heap.
>The problem was that sizeof(<TClass>) returned a wrong value. Here at my PC 

Is not TObject.InstanceSize what should be used?.

SizeOf(SomeObject) should return SizeOf(Pointer), shouldn't it?.


  Nico Aragón
  nico at nicoaragon.com

More information about the fpc-devel mailing list