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. Using the perfmon tool I've seen that my application acumulates handlers, is it bad?

Using the perfmon tool I've seen that my application acumulates handlers, is it bad?

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformance
3 Posts 2 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.
  • J Offline
    J Offline
    Joan M
    wrote on last edited by
    #1

    Hello, I've finished my last app. and after finding all the memory leaks, now I've noticed (using the perfmon tool) that the quantity of handlers occupied by my app is increasing each time I create a property sheet. I would like to know: 1. is it normal? 2. how can I know where do I occupy a handler that I don't free? 3. how do I free a handler? I thik that my questions are not enough concise, but, at least, could you point me to somewhere to find info about those topics? Thank you in advance...

    https://www.robotecnik.com freelance robots, PLC and CNC programmer.

    A 1 Reply Last reply
    0
    • J Joan M

      Hello, I've finished my last app. and after finding all the memory leaks, now I've noticed (using the perfmon tool) that the quantity of handlers occupied by my app is increasing each time I create a property sheet. I would like to know: 1. is it normal? 2. how can I know where do I occupy a handler that I don't free? 3. how do I free a handler? I thik that my questions are not enough concise, but, at least, could you point me to somewhere to find info about those topics? Thank you in advance...

      A Offline
      A Offline
      Alin Negru
      wrote on last edited by
      #2

      Joan Murt wrote: I would like to know: 1. is it normal? 2. how can I know where do I occupy a handler that I don't free? 3. how do I free a handler? 1. NO, is not normal! 2. maybe it's a file HANDLE, an event HANDLE(check to see if you don't create a handle everytime you create a property sheet.(CreateEvent, CreateThread...)) 3. look at BOOL CloseHandle( HANDLE hObject // handle to object to close ); in MSDN. It's very self explanatory

      J 1 Reply Last reply
      0
      • A Alin Negru

        Joan Murt wrote: I would like to know: 1. is it normal? 2. how can I know where do I occupy a handler that I don't free? 3. how do I free a handler? 1. NO, is not normal! 2. maybe it's a file HANDLE, an event HANDLE(check to see if you don't create a handle everytime you create a property sheet.(CreateEvent, CreateThread...)) 3. look at BOOL CloseHandle( HANDLE hObject // handle to object to close ); in MSDN. It's very self explanatory

        J Offline
        J Offline
        Joan M
        wrote on last edited by
        #3

        I think that I'm in trouble then... The problem arises when I use HTMLCtrl... (it's a class that allows to place a HTMLView inside a dialog). It seems that each time that this control navigates to a web page a handle is occupied and that when I close the property sheet the handle is not being freed, but my problem is that I don't write any CreateThread, event, and neither I create a file... I'm lost... Could you imagine what is happening? Thank you in advance.

        https://www.robotecnik.com freelance robots, PLC and CNC programmer.

        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