Solved

List Handles for current Process

Posted on 1997-07-14
1
256 Views
Last Modified: 2013-12-03
I have a program that I am trying to develop and intermittently it loses a handle. I have a good idea of what handles are being created in my process but I can't track down what the problem is.

If I can find a way to list all of the handles before and then after the offending function call then I should be able to spot where I'm failing to free up the handle.

Is there an API or some source that would allow me to dump all of the current handles, their type and any information that might be relevent (Event handle names) for my process at any point?
0
Comment
Question by:cuthbert
1 Comment
 
LVL 1

Accepted Solution

by:
pcs071997 earned 100 total points
ID: 1400872
you can develop that program using two-way method.one is win32 sdk's pview95 sample.the other Toolhelp32.dll function.(see the MSJ 95.9, Matt Pietrek)
0

Featured Post

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual Studio Exe Issue, 12 30
Using an Atomic update intermittently results in duplicates 14 32
Problem to adjust sheet 1 90
Poor Man's .NET Framework Certification 2 59
With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

803 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