I have an app which I'm using a Mouse Hook for. It is run-of-the-mill VB mouse
hook code, but it GPFs at random when the right mouse button is pressed.
I have searched for all the simple stupid mistakes that I could have made
(eg accidentally using byref instead of byval etc) and have found none.
The candidate I see most likely is the stopping of the mouse hook. When the
user clicks the right mouse button the active form is unloaded and the hook
stopped. So is it possible to stop a mouse hook in the MouseProc? When I
stop it the callNextHookEx is not called as it has been killed. Could this
be causing the GPF?
Thanks in advance
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center