Callback on Disposed object


#1

How to you handle callback of disposed (deleted) object’s callbacks?

For example, I am making web service call from a node, but I remove the object from the scene before the getting web service response. Therefore, When web service responses, game crashes with Bad Access.

How can I solve it?

Thanks,
Mert


#2

setvisible(false);

Then remove it later


#3

Your answer gave me an idea.

I can retain the objects when I make a service call and release on callback. By this way, I can solve the problem.

Also, Is this problem occurs on the CallFunc in Sequence with Delay? I think yes.