Hi,
I have a memory leak problems that is resolved by either nullifying the datasource or unregistering the events of a Combobox. Nullifying the datasource might trigger events so I'd rather not use that solution. I could -= all the events of all my controls but what's I'd rather have is a way for the components to unregister their own events and since they don't know which ones were registered, I can't use the -= with explicite events.
the controls have a EventHandleList call Events but it doesn't really work like other collections (can't really loop on it).
Events.Dispose() method doesn't do the job either, the leak is still there so I presume that the events aren't really unregisted.
So, What I'd like to know is if there is a way to loop thru all the registered events to unregister them
I looked at the help for EventHandlerList since it is the type of Events property and it lists a public property named Item as being the delegate list but strangely, there is no such property in Events, not even hidden; obviously, the help is wrong or is it is there a way to expose that property
Thanks