Performance Tuning. Memory

G

Guest

Hi all,
Recently I created a simple testing problem which have two forms [one
is MainForm, one is MyForm]

inside MainForm there's a button.
Private Sub MenuItem6_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MenuItem6.Click
Dim a As MyForm = New MyForm
a.Show()
End Sub

on the MyForm there's other button to close it using Me.Dispose

but I found that Memory usaging is continue to grow up, when i call keep
calling there two button [show -> dispose , show -> dispose] in pairs.
anything I have done wrong which leak to memory leaks?

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top