G
Guest
Hi,
I have a singleton object which contains a ref to a object with a dispose
method on it. I realise that ideally I should call dispose on this object but
since the singleton could be referenced by many clients when should I do this?
I can only think I need to implement some sort of ref counting but I'd like
to avoid this and just clean up the object when my process is shutdown.
If you can offer any advice I'd appreciate it.
I have a singleton object which contains a ref to a object with a dispose
method on it. I realise that ideally I should call dispose on this object but
since the singleton could be referenced by many clients when should I do this?
I can only think I need to implement some sort of ref counting but I'd like
to avoid this and just clean up the object when my process is shutdown.
If you can offer any advice I'd appreciate it.