I've been chasing down memory leaks here recently and I have come to a point where I'm not sure what is causing it. I have a main form and then a child form that I create and do a showDialog() call some function is performed and then the form closes and I call Dispose(). I've found most of my memory leaks because it used to crash the system after about 25 seperate calls to this form... now it takes about 200.
I've been using a Memory profiler by AutmatedQA and it says that all the Live instances of this form are gone after completion, but when I look at the task manager I see three things which may or may not be related and that is the non-paged memory keeps increasing and the number of Handles and Threads for this app keep increasing... The number of threads by about 10 each time the form is run and handles 15-25.
Does anyone have any comments, suggestions, ideas.
Thanks
I've been using a Memory profiler by AutmatedQA and it says that all the Live instances of this form are gone after completion, but when I look at the task manager I see three things which may or may not be related and that is the non-paged memory keeps increasing and the number of Handles and Threads for this app keep increasing... The number of threads by about 10 each time the form is run and handles 15-25.
Does anyone have any comments, suggestions, ideas.
Thanks