R
Ricardo Furtado
for years, in every form i create in VB .Net 2005, in the FormClosing event i
insert the following code:
GC.Collect()
GC.WaitForPendingFinalizers()
but now i'm creating an application that has a very complex form and i
notice that the first time that i use that form in the application the form
opens fast, but after that it opens very slowly. I can only think that the
problem has to do with cleaning the variables/objects. Does this code, that
i've been inserting is the right one to clear objects on a form? is the
correct form to do it or does someone has a better option or can you give me
an hint for code optimization in this aspect?
My thanks in Advanced
insert the following code:
GC.Collect()
GC.WaitForPendingFinalizers()
but now i'm creating an application that has a very complex form and i
notice that the first time that i use that form in the application the form
opens fast, but after that it opens very slowly. I can only think that the
problem has to do with cleaning the variables/objects. Does this code, that
i've been inserting is the right one to clear objects on a form? is the
correct form to do it or does someone has a better option or can you give me
an hint for code optimization in this aspect?
My thanks in Advanced