View Single Post
  #6 (permalink)  
Old 03-27-2008
talkspam
 

Posts: n/a
Re: Does Vista treat Not Responding windows special?

Microsoft has a very naive view about how applications actually work
with respect to what should or should not be considered a "hung"
application. You can turn off ghosting of your application by adding the
following call to your startup logic:


DisableProcessWindowsGhosting();
Alternatively, if you have a compute loop but cannot actually process
message sent to your application, you can add:

PeekMessage(&msg,0,0,0,PM_NOREMOVE);
In XP, the ghosting only occurred if the user attempted to interact
with the application so you could quietly watch your program generate
output to the screen, but in Vista, the ghosting happens after five (5)
seconds of inactivity without consideration of what you have spent time
generating. Just pray that you don't have any 3D content displayed or
your display can't easily recover from the repaint that will occur when
you do start responding because in both cases, you are toast.


--
talkspam
Reply With Quote