Hi,
We are developing a big .Net Windows Forms application. We are facing memory leak/usage problem in that despite we are disposing the forms.
Scenario is like:
- Our application is using 60K of memory with list of records displaying in a Grid.
- When user click on a record it opens a form
myform.showDialog
, show the details. Memory jumps from 60 to 105M - Now we close the form
myform
to get back to grid, and dispose that form and set it to null. Memory remains at 105M. - Now if we again perform step 2, it would jump from 105 to 150M and so on.
Can some one tell how can we free up the memory when we close the myForm? Any help in this regard would be highly appreciated. We have already tried GC.Collect()
etc. but no result.