[fpc-devel]Bad heap manager?

Peter Vreman peter at freepascal.org
Sun Mar 3 12:29:33 CET 2002


At 03:48 3-3-02, you wrote:
>Hola,
>
> >>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?.

That is now corrected


Peter





More information about the fpc-devel mailing list