Hanldes question - need experts opinion
-
Hi all, I was monitoring my applicaiton using the task manager for Handle creation and destructions. I've viewed my code and where i have CreateEvent , there is CloseHandle. plus i use GDIObject utilities to check for un-handled GDI objects and there weren't any...... what else can produce a hadnle???? how can i monitor my code for that?? can any1 help? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
-
Hi all, I was monitoring my applicaiton using the task manager for Handle creation and destructions. I've viewed my code and where i have CreateEvent , there is CloseHandle. plus i use GDIObject utilities to check for un-handled GDI objects and there weren't any...... what else can produce a hadnle???? how can i monitor my code for that?? can any1 help? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
Try Glowcode - http://www.glowcode.com [^]I find it very usefull for tracking down leaks and profiling code. Neville Franks, Author of ED for Windows. www.getsoft.com Make money with our new Affilate program
-
Hi all, I was monitoring my applicaiton using the task manager for Handle creation and destructions. I've viewed my code and where i have CreateEvent , there is CloseHandle. plus i use GDIObject utilities to check for un-handled GDI objects and there weren't any...... what else can produce a hadnle???? how can i monitor my code for that?? can any1 help? thanks in advanced Yaron Ask not what the application can do for you, ask what you can do for your application
First of all what tools are you using? Sysinternals's process viewer(free)? Rational developer? Bounds checker? Handles threads, processes, files, registry keys, system objects (event, mutex, critical section etc.), windows, GDI objects etc (Some of them covered in MSDN under "WaitForSingleObject" and "CloseHandle"). What kind of information are you looking for? Did you check "User objects" column in Task manager?
-
Try Glowcode - http://www.glowcode.com [^]I find it very usefull for tracking down leaks and profiling code. Neville Franks, Author of ED for Windows. www.getsoft.com Make money with our new Affilate program
-
First of all what tools are you using? Sysinternals's process viewer(free)? Rational developer? Bounds checker? Handles threads, processes, files, registry keys, system objects (event, mutex, critical section etc.), windows, GDI objects etc (Some of them covered in MSDN under "WaitForSingleObject" and "CloseHandle"). What kind of information are you looking for? Did you check "User objects" column in Task manager?
thanks for the reply, I am not using either soft u've mentined.... i only used task manager and GDIObj.exe viewer..... i need to track down "HANDLE" leaks because my application increasing the opertating system handle counter and at somepoint it exceeds the maximum handles number..... i can not find in my code where it happens, i need an out-side monitor....what can u recoomend? Ask not what the application can do for you, ask what you can do for your application
-
thanks for the reply, I am not using either soft u've mentined.... i only used task manager and GDIObj.exe viewer..... i need to track down "HANDLE" leaks because my application increasing the opertating system handle counter and at somepoint it exceeds the maximum handles number..... i can not find in my code where it happens, i need an out-side monitor....what can u recoomend? Ask not what the application can do for you, ask what you can do for your application
-
thanks for the reply, I am not using either soft u've mentined.... i only used task manager and GDIObj.exe viewer..... i need to track down "HANDLE" leaks because my application increasing the opertating system handle counter and at somepoint it exceeds the maximum handles number..... i can not find in my code where it happens, i need an out-side monitor....what can u recoomend? Ask not what the application can do for you, ask what you can do for your application
To track problem like this I would use Bounds Checker. But it is expensive and difficult to use. www.sysinternals.com has free download Processviewer - an excellent tool to see what kind of objects are created in your app besides windows. Specifically for windows use Spy+(comes with VC)
-
To track problem like this I would use Bounds Checker. But it is expensive and difficult to use. www.sysinternals.com has free download Processviewer - an excellent tool to see what kind of objects are created in your app besides windows. Specifically for windows use Spy+(comes with VC)
thanks for reply, i will try out the www.sysinternals.com ... and see if it helps me.... Ask not what the application can do for you, ask what you can do for your application
-
thanks for the reply, will glowcode help me track down "HANDLE" leaks? Ask not what the application can do for you, ask what you can do for your application
Yaron Nir wrote: thanks for the reply, will glowcode help me track down "HANDLE" leaks? From memory yes it will. There is a free trial, so you can quickly try it for yourself. Neville Franks, Author of ED for Windows. www.getsoft.com Make money with our new Affilate program