Hello,
I am using docking manager in my application. I am handling the DockVisibility changed event in the mail form. I am setting the visiblity of the the control to flase to when the user clicks the close(x) menu by calling the method SetDockVisibility. Also i am calling Dispose method of the control.
After doing this i found that the docking manager still has a reference to the disposed control and it is not dispose or close the control. The control has reference to huge amount of memory reference. How could i remove the control permenently from docking manager to reclaim the referenced memory. Here i attached a sample programe to represent the above problem.
1. Run the application.
2. Open the Task Manager and see the Performance tab and see the MemUsage Section.
3. Click the new Menu in the application.
4. Now look at the MemUsage section in Task Manager
5. Close the Form2 tab and see the MemUsage section in Task Manager. You can see that the memory climed is still there after closing the Form2 tab.
6. Now click the Count Menu, a message box pops and show the available controls from the docking manager.
Let me know how to permenently remove a control from Docking Manager.
Thanks,
Suresh Mani.
MemoryLeak_3209.zip