Closing HANDLE problem

Hello,

I just finished and application that has two components. One is the main app(GUI) and the other is a driver with which the app communicates trough deviceiocontrol. When I thought everything is ok I just noticed(I used SysInternals’s Process Explorer) that I have a number of handles that do not close. Because it’s within a loop they are constatntly multipling. If my app is using only 5 Mb of system memory, after couple of hours it grows to 50Mb and reaching about 120,000 opened handles. Process Explorer tells me that the owner of these handles is “System(4)” process. So, I guess that the problem is the driver. Somewhere in there, I am not closing some handles. I checked the code but I don’t see any problem.

My question is: Is there any tool that could give me more information about those opened handles? If not how could I find where the problem is?

Thank you,
Andrei CIUBOTARU

http://www.sysinternals.com/ntw2k/freeware/handle.shtml

— Ciubotaru Ovidiu Andrei
wrote:

> Hello,
>
> I just finished and application that has two
> components. One is the main app(GUI) and the other
> is a driver with which the app communicates trough
> deviceiocontrol. When I thought everything is ok I
> just noticed(I used SysInternals’s Process Explorer)
> that I have a number of handles that do not close.
> Because it’s within a loop they are constatntly
> multipling. If my app is using only 5 Mb of system
> memory, after couple of hours it grows to 50Mb and
> reaching about 120,000 opened handles. Process
> Explorer tells me that the owner of these handles is
> “System(4)” process. So, I guess that the problem is
> the driver. Somewhere in there, I am not closing
> some handles. I checked the code but I don’t see any
> problem.
>
> My question is: Is there any tool that could give me
> more information about those opened handles? If not
> how could I find where the problem is?
>
> Thank you,
> Andrei CIUBOTARU
>

__________________________________
Do you Yahoo!?
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250