D
Darren
If I have objA that has registered for delegate events from objB and
objA is set to null (or is destroyed by going out of scope), should
objA do anything to unregister from these events before it is
destroyed? For instance in the destructor should it be doing something
like this:
objA_destructor()
{
objB.A_delegate -= OnDelegateEvent(MyFunction)
}
Or can this be done automatically somehow???
Thanks in advance,
Darren.
objA is set to null (or is destroyed by going out of scope), should
objA do anything to unregister from these events before it is
destroyed? For instance in the destructor should it be doing something
like this:
objA_destructor()
{
objB.A_delegate -= OnDelegateEvent(MyFunction)
}
Or can this be done automatically somehow???
Thanks in advance,
Darren.