-
Mouse Hook
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
Michael Culley
-
Re: Mouse Hook
Try calling callNextHookEx before removing the hook.
--
Eduardo A. Morcillo
http://www.domaindlx.com/e_morcillo
-
Re: Mouse Hook
Try calling callNextHookEx before removing the hook.
--
Eduardo A. Morcillo
http://www.domaindlx.com/e_morcillo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks