Hi David,
in CFrame::OnCreate we have SetWindowsHookEx for StaticKeyboardProc, but we don't set m_KbdHook.
This is why in CFrame dtor UnhookWindowsHookEx is then not called: should it be?
In MSDN they say "Before terminating, an application must call the UnhookWindowsHookEx function to free system resources associated with the hook"...
Best regards,
Daniel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi David,
in CFrame::OnCreate we have SetWindowsHookEx for StaticKeyboardProc, but we don't set m_KbdHook.
This is why in CFrame dtor UnhookWindowsHookEx is then not called: should it be?
In MSDN they say "Before terminating, an application must call the UnhookWindowsHookEx function to free system resources associated with the hook"...
Best regards,
Daniel
Hi Danial,
Yes the m_KbdHook member should have been assigned CFrame::OnCreate. That's been corrected in the latest code update.
Best regards,
David