Skip to main content
5 events
when toggle format what by license comment
Jun 13, 2013 at 13:05 comment added Allard Buijen You're quite wright. I now load all the events in a subscription list. And in my Dispose i have: foreach (EventSubscription subscription in _subscriptions) { subscription.Unsubscribe(); }
Jun 13, 2013 at 12:22 comment added Dominic Cronin If your dispose doesn't unhook them all, then Tridion will keep hold of your event handler via the events system's delegate chain. You'll probably leak memory all over the floor. Wear your wellies!
Jun 13, 2013 at 10:22 comment added Allard Buijen But it will dispose all then or am i wrong?
Jun 11, 2013 at 21:34 comment added Dominic Cronin Haven't spotted your problem yet, but take note that you are overwriting _subscription each time, so your Dispose() method will only unhook the last subscription.
Jun 11, 2013 at 10:43 history answered Allard Buijen CC BY-SA 3.0