handle leakage

L

linuxfedora

Hi All,

I found that my application has handle leakage, and i used Windbg to
check my application, and found that the type of handle that incresing
a lot is the Process type, but what could be the API that will create
a Process type handle?Thanks.
My program is written in C# + MFC ActiveX. Thanks
 
P

Peter Duniho

linuxfedora said:
But my source code has no CreateProcess function.

Well, then you must not have a leak! Code fixed!

Seriously though, anything in your code that deals with processes
_might_ be responsible for the leak. But if you don't post the code
that causes the leak, there's no way for anyone else to suggest what the
problem might be.

CreateProcess() is an unmanaged function in the Win32 API that creates a
process. Of course, it's possible that you are calling that function
indirectly by using the Process class, or CreateProcessEx() (a similar,
newer function), or that you are somehow getting a process handle for an
already-existing process, or...

There are lots of choices. On the face of it, your question appears to
have nothing to do with .NET or C#. If you think it is related to .NET
or C#, post a concise-but-complete C# code example that reliably
demonstrates the problem.

Pete
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top