2009/10/8 Jonas Maebe <jonas.ma...@elis.ugent.be>:
> Also, as you can see the program does not really depend on the data being
> actually stored in a dynamic array. So you could just as well use "tocarray:
> ^Int32" and assign it the value of p (as you pretty much did until now).

Ah! That is what I wanted to do in the first place, but I obviously I
didn't get the ^int32 syntax correct.

It now works perfectly, without the need of the local array. :-)  And
more importantly, no more memory leak. ;-)

Thanks Jonas.


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to