G
Guest
Hi,
One of problems we faced in EVB was that we cound not unload forms. This was a bottle neck for my application. I am porting this application to VB.NET. I want to recover memory from certains forms once they are not required anymore e.g login form. I am using following syntax.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim f1 As Form1
f1 = New Form1
f1.ShowDialog()
End Sub
When i close form, memory usage level remains at he same level. Even when i repeatedly create and close same form, memory usage begins to increase. Can some body suggest me how can i ensure that memory is recovered as soon as form is closed ?
One of problems we faced in EVB was that we cound not unload forms. This was a bottle neck for my application. I am porting this application to VB.NET. I want to recover memory from certains forms once they are not required anymore e.g login form. I am using following syntax.
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim f1 As Form1
f1 = New Form1
f1.ShowDialog()
End Sub
When i close form, memory usage level remains at he same level. Even when i repeatedly create and close same form, memory usage begins to increase. Can some body suggest me how can i ensure that memory is recovered as soon as form is closed ?