Callback on Disposed object

Callback on Disposed object
0.0 0


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?




Then remove it later


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.