|
-
Jun 24th, 2009, 11:00 PM
#4
Re: Erase on array of objects
 Originally Posted by Milk
I believe Erase is fine, objects are only kept alive whilst they are referenced.
If you want proof insert a debug.print or some such into the objects Terminate event.
Oh yeah, not sure why I didn't think of this. 
 Originally Posted by Merri
Objects have a counter on how many there are, and when the counter reaches zero the object is destroyed. The objects should be properly destroyed when you call Erase, but not all of them get destroyed if there are references to them elsewhere (the internal counter is bigger than 1).
Thanks.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|