LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

loosing mouse clicks on XP but not on NT

We have an application written with Labwindows CVI6 and originally running fine under NT.  When there is high load on the system clicking on a button may have a delayed reaction, but finally it will work. But when running that application under the same conditions under XP, there is no reaction to the click, but a message "Keine Rückmeldung" ( Translated:No response) will appear in the title bar. But the application seems still be working. How to fix that problem ?    
0 Kudos
Message 1 of 2
(2,749 Views)

I don't know if you can fix that problem as it is a Windows OS thing that is happening. XP is a bit more stringent about how it passes messages to an application and does a much more thorough job of keeping track of which applications are "listening" and which have not responded to the windows message being put in the queue within a given time period than NT did.

The only thing I can think of is to use the SetSleepPolicy() function and set it to VAL_SLEEP_MORE and to throw in some ProcessSystemEvents() calls into any code that takes a long time to execute. This MAY help with the windows message queue response but without trying it, I cannot tell you if it will help.

Martin Fredrickson
Test Engineer

Northrop Grumman
Advanced Systems and Products
San Diego, CA 92128
Message 2 of 2
(2,735 Views)