windows - Is KillTimer necessary? -
I use the SetTimer API and I see a lot of code like this:
< Code> Case WM_DESTROY: // Kill timer KillTimer (HWD, IDT_TIMER); PostQuitMessage (0); break;
Do I have to call Kili-Timer or will the system automatically free up on exit from the system? Do you forget to call the Kilometer for leaking resources?
I understand that if the timer is not needed it can be destroyed by kilometer but it is necessary to manually destroy it.
Destroy timer window (HWD) set with HWNDS. Otherwise, you will not have to clean your timer while leaving the window.
But there is a good practice of all your resources related to the window when the window is closed.
Comments
Post a Comment