Hey there!
I was tasked with fixing the memory leak problem of some programs, and since they have more than 100k lines combined i wanted to know something before starting :D
I want to make sure that this is the correct way of clearing/cleaning an object:
/**************************/
tmpPanel:Dispose().
tmpPanel = ?.
IF VALID-OBJECT(tmpPanel) THEN DELETE OBJECT tmpPanel NO-ERROR.
/**************************/
Am I missing something? Do I need to do anything else?
And can I do this dynamically? By sending the object in an argument and running the "Dispose" method by invoking it. Does that work as well?
And If i assign the object i want to clear/clean before doing clearing/cleaning it to another variable, should I also clear/clean such variable?
JP