G
Guest
Hello,
I have a form with a button, the button opens another form using showdialog.
The second form contains a panel which contains a tabcontrol wich contains on
each of its tabs a bunch of labels. After closing the second form, I call
dispose and even ask for garbage collection, but even this way the memory is
not freed.
This is the code that opens the form:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim formu As New Form2
formu.ShowDialog()
formu.Dispose()
formu = Nothing
GC.Collect()
End Sub
I don't know if it's a known bug and if there's any solution to this
problem. I tried upgrading from compact framework 1 sp3 to 2.0, but it's
still the same.
Thanks a lot
JoaquÃn Raya
I have a form with a button, the button opens another form using showdialog.
The second form contains a panel which contains a tabcontrol wich contains on
each of its tabs a bunch of labels. After closing the second form, I call
dispose and even ask for garbage collection, but even this way the memory is
not freed.
This is the code that opens the form:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
Dim formu As New Form2
formu.ShowDialog()
formu.Dispose()
formu = Nothing
GC.Collect()
End Sub
I don't know if it's a known bug and if there's any solution to this
problem. I tried upgrading from compact framework 1 sp3 to 2.0, but it's
still the same.
Thanks a lot
JoaquÃn Raya