Re: memory not being released
- From: "news.microsoft.com" <sa@xxxxxxxxxxxxxxxx>
- Date: Mon, 23 Jul 2007 20:09:40 +0530
You might be missing disposing of components in your form. Check if you dont
have below code then add that to you form
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
________________________
sa@xxxxxxxxxxxxxxxx
http://www.openwinforms.com/
OpenWinForms - open source windows forms and controls
Google group - http://groups.google.com/group/open-winforms
"gigel" <gigel@xxxxxxxxx> wrote in message
news:eE1x9cuyHHA.1072@xxxxxxxxxxxxxxxxxxxxxxx
Hello all,
I have a winforms app running on framework v2.0.50727 which isn't not
releasing memory back to the OS after closing forms. Simple forms (a list
+ button)
or complex ones (tabs, lots of text boxes, third party masked edit
control) behave the same way,
Every time is instantiated it allocates memory which never gets released.
The code sequence is
Dim frCustomer As New frmCustomer
..
custom code to populate form
...
frCustomer.ShowDialog()
frCustomer.Dispose()
If Not frCustomerIs Nothing Then frCustomer= Nothing
Where should I start troubleshooting? What am I doing wrong.
Thanks a million,
Gigel
.
- References:
- memory not being released
- From: gigel
- memory not being released
- Prev by Date: Re: Looking for suggestions on design patterns/architecture books
- Next by Date: Re: DataGridView and Enter key
- Previous by thread: Re: memory not being released
- Next by thread: Context menu depending on panel
- Index(es):