- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
'Preventing Hangs in Windows Applications'
http://msdn.microsoft.com/en-us/library/dd744765%28v=vs.85%29.aspx
This is a problems with Windows7.
I am in the process of changing my program to get it to work - which I'm finding difficult - has anyone else had experiance with this problem?
Thanks
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm getting a problem with application hanging on Windows 7 when I block using a message loop to capture mouse messages to enable the user the use the mouse for selection or manipulation of the display. This problem does not occur in XP (it started to appear with Vista). When I'm working within Visual Studio everything works fine but as soon as I start running the application from the desktop the hanging problem starts to occur but in a random way.
As most users are about to upgrade their PC's (operting system) to Win 7 (or 8) solving this problem has become a priority.
I've tried using the Spyxx tool to monitor windows in order to try to debug the problem but it does pick up any messages.
The MSDN article mentions the function DisableProcessWindowsGhosting () but implies that this might have unwanted side effects.
I would greater appreciate any advice on a way forward.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
dannycat wrote:
I'm getting a problem with application hanging on Windows 7 when I block using a message loop to capture mouse messages to enable the user the use the mouse for selection or manipulation of the display.
If I understand it correctly, you are interrupting window message processing in order to do things in response to mouse messages. I guess you have to have subclassed a window to be able to do this. If so, you must be sure to pass on messages to the correct default window message handler after you have done your own stuff or else if you do not, you can expect to find funny things happening as a result.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page