[fpc-pascal] New Dispose and FreeMem and objects

Andrew Haines AndrewD207 at aol.com
Sat Aug 27 00:18:38 CEST 2011


On 08/26/11 17:14, Jonas Maebe wrote:
> 
> On 26 Aug 2011, at 22:39, Andrew Haines wrote:
> 
>> Maybe Dispose can call a destructor and that is the difference between
>> Dispose and FreeMem?
> 
> The other difference is that dispose() will finalize any reference counted fields, while freemem won't.
> 
> 

Ok so freemem is okay as long as I am careful about the members of the
object.

Thanks,

Andrew Haines



More information about the fpc-pascal mailing list