Page 1 of 1

Freeing objects 2

PostPosted: Sep 9, 2005 @ 5:46pm
by mmtbb
What if I create a list of objects? How do I free this?

for(i$,0,12)
#object Card testcard$(i,i+1);
CardList%[i$] = &testcard$;
end;

I have twelve objects in a list. Do I free the list? if so, how?

PostPosted: Sep 9, 2005 @ 7:44pm
by kornalius

PostPosted: Sep 9, 2005 @ 8:03pm
by kornalius

PostPosted: Sep 9, 2005 @ 8:14pm
by mmtbb

PostPosted: Sep 9, 2005 @ 8:18pm
by kornalius

PostPosted: Sep 9, 2005 @ 8:29pm
by mmtbb

PostPosted: Sep 10, 2005 @ 2:14am
by kornalius
You will only free the 13th object from memory, the 12 others will stay in memory. You need to store the object's addresses somewhere to free them later.