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