I couldn't find a relevant thread on this, so if it does exist, my apologies.
I understand that unsubscribing on close is a form of good housekeeping, but is it necessary? If so, must you loop through each unique ID or is there a method to just dispose of all active subscriptions?
I mean, sure it's very simple...just wondering how necessary it is.
While subscriptionID > 0
mainplc.UnSubscribe(subscriptionID)
subscriptionID = subscriptionID - 1
End While