[fpc-pascal] AggPas / PTCGraph dynamic memory allocation

Graeme Geldenhuys mailinglists at geldenhuys.co.uk
Sun Nov 12 10:38:03 CET 2017

On 2017-11-12 01:27, James Richters wrote:
>     ClockBuffer_With_Time:=ClockBuffer_original;

That seems fine.

>     AggClockbuffer^:=ClockBuffer_With_Time^+3*Sizeof(Longint);   //Set AggClockBuffer to be 3 Longints past ClockBuffer_with_time

This seems wrong. Try changing that to the following:

   AggClockbuffer := ClockBuffer_With_Time + (3*Sizeof(Longint));

   I haven't tried to run your code or my suggested changes.


fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

My public PGP key:  http://tinyurl.com/graeme-pgp

More information about the fpc-pascal mailing list