User Profile

Collapse

Profile Sidebar

Collapse
justfortunate
justfortunate
Last Activity: Jun 5 '07, 03:19 PM
Joined: Jun 5 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • justfortunate
    replied to .NET forms doesn't get disposed
    in .NET
    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...
    See more | Go to post

    Leave a comment:


  • justfortunate
    started a topic .NET forms doesn't get disposed
    in .NET

    .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...
    See more | Go to post
No activity results to display
Show More
Working...