2
Answers

WinForms Controls.Clear() cause memory leaks?

Photo of Vinaya

Vinaya

15y
11.9k
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)