• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 356
  • Last Modified:

Handle count problem

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??????
  • 2
1 Solution
Window handles and memory using is something differnt.
Here is one sample:
gvector1Author Commented:
Very interesting article.  It did give me some useful information.  There is no doubt that my handle leak is a major problem, any suggestions on how to track down the cause of this leak????
It depends which handles are you using. It look like that you draw a bit and not free resources back.
First try to analize your code. Go in debug mode over your code and look at handle count.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now