2
Answers

WinForms Controls.Clear() cause memory leaks?

Ask a question
Vinaya

Vinaya

14y
9.7k
1
I have created a windows application, where on the form i have one pannel, in which i have lots of control, when i tried to call panel.Controls.clear(), to remove the existing controls , memory leaks and when i try to add the controls again, i got an exception. Please help!!!

Answers (2)