[progress Communities] [progress Openedge Abl] Forum Post: Re: Class And Delete Object Xxxxx

  • Thread starter Thread starter Lieven De Foor
  • Start date Start date
Status
Not open for further replies.
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...
 
Status
Not open for further replies.
Back
Top