Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Kill Instance during Runtime

gubp
Participant
0 Likes
1,188

A simple question that I cant find an answer. Is it possible to kill an object during Runtime(debug)?

5 REPLIES 5
Read only

matt
Active Contributor
0 Likes
1,117

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.

Read only

matt
Active Contributor
0 Likes
1,117

I just checked - doesn't look possible.

matt

Read only

Former Member
0 Likes
1,117

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

Read only

gubp
Participant
0 Likes
1,117

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!

Read only

Clemenss
Active Contributor
0 Likes
1,117

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