09-14-2005 04:52 AM
09-14-2005 08:36 AM
09-14-2005 08:54 AM
The LabWindows help says that ProcessSystemEvents should be used carefully, and I wouldn't like the application to crash because the user has clicked somewhere during the function execution were the GUI has to be updated. Is there another solution?
09-14-2005 10:16 AM
Try putting the ProcessSystemEvents() call at the end of your timer callback routine. I have found that if the timer callback takes so long to execute that the next timer tick occurs before the function ends, it will immediately be re-entered without the GUI being updated. By including the ProcessSystemEvents() within the callback this will guarantee that the GUI servicing will be performed, even if the timer callback intervals are set to 0.
JR
09-16-2005 05:47 AM