Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Handle count problem

Posted on 2007-04-02
4
Medium Priority
?
354 Views
Last Modified: 2008-02-01
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??????
0
Comment
Question by:gvector1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 16

Accepted Solution

by:
AlexNek earned 2000 total points
ID: 18838422
Window handles and memory using is something differnt.
Here is one sample:
http://blogs.msdn.com/jfoscoding/archive/2004/11/24/269416.aspx
0
 

Author Comment

by:gvector1
ID: 18839743
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????
0
 
LVL 16

Expert Comment

by:AlexNek
ID: 18839804
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.
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question