![]() |
Process handle leak |
Post Reply
|
| Author | |
amitdagan
Newbie
Joined: 16 March 2010 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
Topic: Process handle leakPosted: 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 ?! |
|
![]() |
|
amitdagan
Newbie
Joined: 16 March 2010 Status: Offline Points: 0 |
Post Options
Thanks(0)
Quote Reply
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. |
|
![]() |
|
BeakerOfSolace
Senior Member
Joined: 15 March 2010 Status: Offline Points: 336 |
Post Options
Thanks(0)
Quote Reply
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?
|
|
![]() |
|
ZanyTimbo
Newbie
Joined: 20 November 2012 Location: United States Status: Offline Points: 1 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |