Handle count problem
Posted on 2007-04-02
I have an application which had a memory leak. It is an appointments application. We built a stress test that cycles through the list of appointments and opens and closes the appointment form. I believed I had found the memory leak, a print preview dialog that belonged to the appointment form. I explicitly disposed of the Print Preview Dialog in the appointment form's dispose method and my memory count, viewable through task manager, seemed to be stable. Previously our stress test would only cycle through the appointments list 5 times. Now, the test is able to cycle 11 times. My problem is that now when the application crashes in the 11th cycle, my task manager shows some info. It tells me that my memory seems to be okay for the process (39,220K) but my handles count is extreme(46,427). How could I be releasing memory, but my handles are not??????