[vtk-developers] window going blank...
Sebastien BARRE
sebastien.barre at kitware.com
Tue Oct 7 12:32:02 EDT 2008
At 10/7/2008 12:06 PM, David Cole wrote:
>If you want to do something that takes longer than Windows'
>definition of "not responding" and still call yourself an
>interactive Windows application, at a minimum you need to call
>PeekMessage every few seconds (even if your call does not remove the
>messages from the queue or process them...).
>
>According to the documentation for the IsHungAppWindow Windows SDK
>function...:
><http://msdn.microsoft.com/en-us/library/ms633526(VS.85).aspx>http://msdn.microsoft.com/en-us/library/ms633526(VS.85).aspx
>
>...calling PeekMessage every 5 seconds should prevent the "not
>responding" status.
>
>It also says that 5 seconds is subject to change, and I would guess
>it's less than 5 now with Vista.
Thanks Dave, I'll test that in VolView, say everything second to be
safe (I timed the "not responding kill switch" threshold at about 2
seconds on my Vista box).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20081007/ed0f8c82/attachment.html>
More information about the vtk-developers
mailing list