L
Lieven De Foor
Guest
I would recommend against explicitly deleting objects using the delete object statement. In your case each iteration of the loop will cause the reference to the previous object to be overwritten with the new one, causing it to get garbage collected (when the actual collection occurs should not concern you). Only the last iteration's object will stay around for as long as there's a reference to it. If the variable that references it goes out of scope, that object will also be release and eventually garbage collected. For global variables (or similar) just set them to ? to clear the reference and let the garbage collector do its work.
Continue reading...
Continue reading...