Hmmm, so regarding the unhooking of events and we're talking about wpf here:
Suppose I have a stackpanel and I fill it with 20 controls, each control I hook to an event. Then I clear the stackpanel (Stackpanel.children.clear), do I need to unhook the events prior to clearing?
I talked to a .net developer (professional I suppose) a while ago regarding this and he said that garbage collector would pick them up and would automatically unhook them. Is this different with C# and VB? I have noticed that after running my application on 1000 drawings of varying sizes that memory of acad.exe goes from 200mb to 500mb. But I was also collecting a ton of data from each file and was thinking that the data (which exported out to a 30mb xml file) and all the linq operations drained that ram.
Its not a big deal to remove the handlers, but after he told me that I never bothered to remove them.
Thanks,
Viktor.