Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Hanldes question - need experts opinion

Hanldes question - need experts opinion

Scheduled Pinned Locked Moved C / C++ / MFC
questiongraphicshelp
9 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yaron Nir
    wrote on last edited by
    #1

    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

    N A 2 Replies Last reply
    0
    • Y Yaron Nir

      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

      N Offline
      N Offline
      Neville Franks
      wrote on last edited by
      #2

      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

      Y 1 Reply Last reply
      0
      • Y Yaron Nir

        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

        A Offline
        A Offline
        AlexO
        wrote on last edited by
        #3

        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?

        Y 1 Reply Last reply
        0
        • N Neville Franks

          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

          Y Offline
          Y Offline
          Yaron Nir
          wrote on last edited by
          #4

          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

          N 1 Reply Last reply
          0
          • A AlexO

            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?

            Y Offline
            Y Offline
            Yaron Nir
            wrote on last edited by
            #5

            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

            A 2 Replies Last reply
            0
            • Y Yaron Nir

              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

              A Offline
              A Offline
              AlexO
              wrote on last edited by
              #6

              I am taking a guess here - MFC|MDI with a lot of FormViews. If yes look through ypur dialog templates for unused controls (staics, group boxes etc.)

              1 Reply Last reply
              0
              • Y Yaron Nir

                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

                A Offline
                A Offline
                AlexO
                wrote on last edited by
                #7

                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)

                Y 1 Reply Last reply
                0
                • A AlexO

                  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)

                  Y Offline
                  Y Offline
                  Yaron Nir
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • Y Yaron Nir

                    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

                    N Offline
                    N Offline
                    Neville Franks
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups