Hi,
The test code I wrote was very simple
On btnTest_Click event
frmMyTestForm frmMTF = new frmMyTestForm() ;
frmMTF.ShowDial og();
frmMTF.Dispose( );
frmMTF = null;
On the frmMyTestForm I have a Close button which calls this.Close()
frmMyTestForm has about 25 UI objects (buttons, listbox, etc) without any code attached for testing.
In my commercial...
User Profile
Collapse
-
.NET forms doesn't get disposed
I wrote a simple form with a button, on click of a button it opens up another windows with few more buttons, listboxes etc. I noticed that when I click on the button the memory utilization goes up and when I close the window the memory doesn't get released. I also called the dispose method and also the GC.Collect() but still I don't see the memory getting freed but instead the utilization increases everytime I open the window. This is a major...
No activity results to display
Show More
Leave a comment: