handle leakage...

H

Hilla

Hi,
I wrote a program that consists of 4 threads.
When i run it i see in the task manager that when there is a call to
one of the threads the amount of handles increase by 2 each time.
(it reached over 150,000 handles!!!)
I tried debugging it to find the leak but cant seem to find it (put
breakpoints all over the code - it gets there already with the 2 extra
handles!)
Does anyone have an idea how i can look for the leak?
Thanks...
 
M

Martijn Lievaart

Hi,
I wrote a program that consists of 4 threads.
When i run it i see in the task manager that when there is a call to
one of the threads the amount of handles increase by 2 each time.
(it reached over 150,000 handles!!!)
I tried debugging it to find the leak but cant seem to find it (put
breakpoints all over the code - it gets there already with the 2 extra
handles!)
Does anyone have an idea how i can look for the leak?

Start by asking in a group for your compiler/OS. There are tools for this,
but they are very dependent on what platform you're using.

I personally worked with NuMega tools on Windows. That certainly gets the
job done and is worth its money. But many, many other tools exist.

All this is off-topic for this group, as C++ has no concept of handles,
it's an OS specific thing.

HTH,
M4
 

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

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,414
Latest member
djangoframe

Latest Threads

Top