Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > Process Explorer
  New Posts New Posts RSS Feed - Process handle leak
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Process handle leak

 Post Reply Post Reply
Author
Message
amitdagan View Drop Down
Newbie
Newbie


Joined: 16 March 2010
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitdagan Quote  Post ReplyReply Direct Link To This Post Topic: Process handle leak
    Posted: 16 March 2010 at 4:03pm
I am having a strange problem:

A program running on one computer (dell touch screen tablet) is leaking handles of type Process (as seen both on Process Explorer and Handle ).
The same exact code running on another dell laptop (not a tablet) has no leaks whatsoever.

It doesn't matter if I run the code from devenv or from the executable itself.
It doesn't matter if I compile the code on this tablet or on another computer.
I still only get the process handle leaks on the tablet (to the point where I get a blue screen).

The one thing I am most confused about is that when I look in Process Explorer, I can see that the process handles are all for the same process - the name of which is the application I am running. There is only one instance of this application on the computer.

Any ideas ?!

Back to Top
amitdagan View Drop Down
Newbie
Newbie


Joined: 16 March 2010
Status: Offline
Points: 0
Post Options Post Options   Thanks (0) Thanks(0)   Quote amitdagan Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2010 at 9:48pm
Since there have been no replies, let me ask a simlper question.
Here is the output from running Handle.exe on my application:

===================================
Handle v3.42
Copyright (C) 1997-2008 Mark Russinovich
Sysinternals - www.sysinternals.com

Handle type summary:
  Desktop         : 1
  Directory       : 3
  Event           : 315
  File            : 79
  IoCompletion    : 6
  Key             : 50
  KeyedEvent      : 1
  Mutant          : 30
  Port            : 11
  Process         : 99
  Section         : 17
  Semaphore       : 31
  Thread          : 20
  Timer           : 3
  Token           : 1
  WindowStation   : 2
  WmiGuid         : 1
Total handles: 670
===================================
It's the  handles of type "Process" that are leaking (quite rapidly).

My question is - what exactly is a handle of type "process"?
Extra bonus for the answer to the question - what creates or how are these handles created?

thanks,
Amit.
Back to Top
BeakerOfSolace View Drop Down
Senior Member
Senior Member
Avatar

Joined: 15 March 2010
Status: Offline
Points: 336
Post Options Post Options   Thanks (0) Thanks(0)   Quote BeakerOfSolace Quote  Post ReplyReply Direct Link To This Post Posted: 08 May 2010 at 7:39pm
does your program create / start other processes? a common source of process handle leaks is the creating process not closing the process and thread handles returned in the PROCESS_INFORMATION struct passed to create process

what does procexp tell you the process handles are for?
Back to Top
ZanyTimbo View Drop Down
Newbie
Newbie
Avatar

Joined: 20 November 2012
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ZanyTimbo Quote  Post ReplyReply Direct Link To This Post Posted: 20 November 2012 at 12:15am
Did you ever get any answer to this problem?  We are having the same problem with a program here where I work, where it shows up on certain computers, and not on others.  If you ever figured out what this was, I'd really like to know!

Thanks,
Tim
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down