Possible memory leak in System.Windows.Forms (Icon property)
-
Hi, I have two forms: the principal and what will be called. The first possesses a button and the second anything it contains. The code of the button is like this simple:
Form2 f = new Form2 (); f.Show ();
PROBLEM: Making an analysis of the instances created during the processes I arrived in a subject that, for me, it is stranger: Before the form2 call ---------------------- Instances of the class Icon: 2 (I imagine that is one of the main form and one of the application) After the form2 call --------------------- Instances of the class Icon: 3 (+1, that´s OK) After the form2 closing ------------------------ Instances of the class Icon: 3 (that is a leak or am I being paranoid?) Obs.: The fact of the form to be not modal, it doesn't alter the values. Hugs, Marcelo Palladino Brazil