[fpc-pascal] How to free this memory and avoid memory leak
Alexey Voytsehovich
ironwit at gmail.com
Thu Oct 8 15:58:20 CEST 2009
Hello Graeme,
Thursday, October 8, 2009, 4:51:34 PM, you wrote:
> tocarray: array of Int32;
> p: PByte;
> begin
> _Topics.Capacity := _Header.ntoc;
> SetLength(tocarray, _Header.ntoc);
> // Finalize(tocarray); <--- doesn't work
> Finalize(tocarray, _header.ntoc); <--- doesn't work
> tocarray := nil; <--- doesn't work
SetLength(tocarray, 0); ?
--
Best regards,
Alexey Voytsehovich mailto:ironwit at gmail.com
More information about the fpc-pascal
mailing list