On 08 Oct 2009, at 15:58, Alexey Voytsehovich wrote:

Thursday, October 8, 2009, 4:51:34 PM, you wrote:
//  Finalize(tocarray);                        <--- doesn't work
 Finalize(tocarray, _header.ntoc);       <--- doesn't work
 tocarray := nil;                                  <--- doesn't work

SetLength(tocarray, 0); ?

None of these are required, dynamic arrays are automatically finalised when the function exits.


Jonas
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to