[fpc-pascal]Another pointer related question

James_Wilson at i2.com James_Wilson at i2.com
Mon Oct 22 21:05:58 CEST 2001


> Dispose is supposed to free the whole memory block pointed by the
> pointer, so it has to know exactly what structure it references to
> (otherwise it wouldn't know how many bytes were occupied originally).
> Consequently, it cannot be used with a generic pointer parameter,
> only with some actual, typed one.

I was afraid it was going to be something like that. I had hoped that by
merely referencing the pointer I could just reclaim all the memory it was
using, regardless of the structure. Sigh...

Thanks for your help.

Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20011022/96a320da/attachment.html>


More information about the fpc-pascal mailing list