On 16.11.2013 02:03, Timothy Groves wrote:
This produces bad results, as it currently sits. What am I doing wrong?
Here's the code I *actually* have in the method:
var
index,
last : integer;
begin
last := length (t_volumes) - 1;
index := 0;
while ((t_volumes [index] <> t_current
On 16 Nov 2013, at 02:36, Martin 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 inste