[fpc-pascal] about "reference-counted" variables

Xiangrong Fang xrfang at gmail.com
Thu Mar 14 02:52:55 CET 2013


Is there a "complete" list of reference counted variables in FP?  e.g.
dynamic arrays are ref-counted. but are variables allocated by New()
ref-counted?

My use case is:

type
  PMyRecord = ^TMyRecord;

p: = New(PMyRecord);
MyListView.Item[0].Data = p;
MyListView.Item[0].Delete;     <-- Do I need to Dispose(p) manually when I
remove this item or free the ListView?


Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20130314/3901667d/attachment.html>


More information about the fpc-pascal mailing list