LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Refresh the user interface

My program runs ~4 minutes. It works fine, but when i select any other thing on the desktop, my programm does not update the screen.
I use  ProcessDrawEvents but the effect is still the same. When my program stops I can see all messages. What can i do ?
0 Kudos
Message 1 of 2
(3,832 Views)

Hi Albert,

Do you have any tight loops running in your code? If so, try throwing in a ProcessSystemEvents call there as this should free up your UI to accept messages.  I am suprised ProcessDrawEvents didn't work. Where did you actual put the call to ProcessDrawEvents? Is your program spawning off new threads and creating panels in those threads? The reason I ask that is because if you call ProcessDrawEvents in a multithreaded program, only the panels created in the current thread are guaranteed to be updated fully. 

Maybe a little more description on what you program is doing would help out

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,821 Views)