‎2011 Aug 11 8:51 PM
A simple question that I cant find an answer. Is it possible to kill an object during Runtime(debug)?
‎2011 Aug 11 9:09 PM
Double click on the instance in the code, then again in the variable list to see it in object view, then check the tools button. There may be an option there.
‎2011 Aug 12 6:19 AM
‎2011 Aug 12 3:31 AM
Gustavo,
Not sure if I understand your ques well, but killing an instance during runtime in foreground can be done by going to the TOP LEFT MOST CORNER, there is a folder sign, click it and do 'STOP Transaction'.
Also, if it is not foreground, go to SM66, double click the instance and do 'Cancel Program'.
or
SM50 --> Process --> Cancel without Core
BR,
Diwakar
‎2011 Aug 12 3:09 PM
Diwakar, I want to kill an instance when debuging my program (foreground).
Matt, I checked tools and even on 7.02 there is no option for that.
I can start the Garbage Colector manually, but it will free Object reference only after the end of my program.
tks!
‎2011 Aug 13 9:09 PM
Hi Gustavo,
what ever it is good for, I found this dirty trick that must be done in the program: Append the reference of your object to an internal table of references. Clear the original. Read table assigning field-symbol. Now the field-symbol can be used as your object reference. You can delete the internal table line and the reference, the object is gone.
But this obviously fools the garbage collector: If you run it, no memory id freed.
Regards
Clemens