Avatar

Correct answer by
Level 10

Hi there,

When removing instances within an object's event which is inside the instance, you must make sure that you remove this particular instance at the end of the event.

E.g.:

If you remove the instance of which the button is inside before even finishing the whole event, the program will not recognize what event is to be finished because you have removed the object's which is fired..

So here you are trying to finish some code which doesn't exist anymore ...

I suggest you should always remove the instance of (this) object at the end of any event to make sure to finish all your actions before deleting the object.

Hope this help!

View solution in original post