On 16 Nov 2013, at 02:36, Martin <laza...@mfriebe.de> wrote:

> On 16/11/2013 01:03, Timothy Groves wrote:
>>  [last].Destroy;
> 
> destroys the object pointed to by both: t_volumes [last] and t_volumes [index]
> 
> You should have destroyed t_volumes [index] *before* copying the value

And you should call Free instead of Destroy.


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

Reply via email to