Check existence of factory object

Does exist the way to check existence of the instance that was created by factory?
So, in one GO i have a factory that create instances and from the other GO i want to send to this GOs messages, but sometimes i receive an error.
What can i do with it?
ERROR:
26
Also, i can give more information about my case if it will be necessary

1 Like

No, there is no way to check thay. You need to store the id in a table somewhere so you can track the objects.

3 Likes

Ok. Nice idea :thinking:, i’ll try it. Thank you :wink:

romagnn!

I can’t remember the correct code I used, but what I did was got each object created by a factory to send a message (from the init section) to the parent object. You could send another message from the final function (or whatever it’s called, I never use that function) which would be sent when that object is deleted.

2 Likes

Hm, it may work. Thank you :wink: