By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,219 Members | 2,140 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,219 IT Pros & Developers. It's quick & easy.

Performance Tuning. Memory

P: n/a
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.
Nov 21 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Why don't you call Me.Close instead?

Nov 21 '05 #2

P: n/a

OK I will call you .Close

:)

"Jordi Rico" <jo*******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com:
Why don't you call Me.Close instead?

Nov 21 '05 #3

P: n/a

OK I will call you .Close

:)

"Jordi Rico" <jo*******@gmail.com> wrote in message
news:11*********************@g43g2000cwa.googlegro ups.com:
Why don't you call Me.Close instead?


Nov 21 '05 #4

P: n/a
seems no one have any idea about why it keeps occupy the memory.
<Windy> glsD:Oq**************@TK2MSFTNGP15.phx.g bl...
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.

Nov 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.