Page 1 of 1

Screen refresh

Posted: Sun Dec 28, 2008 4:28 am
by David_USA
Question: If Revolution is running a process and sending a visual update of the process via a put into a field, should the screen refresh and update stop if you navigate away from Revolution to another application.?

I am using the stack on a windows Vista Platform
While my stack is running a long process I navigate away. When I return the screen is stuck where I left it. It is not updating until the entire process is finished. When the process is finished I get my process completed answer dialog. At this time everything works great again.

I am in need of this not happening so that I can monitor progress as needed.

David J. Lamp

Posted: Sun Dec 28, 2008 9:01 am
by Janschenkel
Revolution is single-threaded, so all event handling blocks the user interface from handling input until the task is done. You can indeed update the user interface but at times in 'tight' loops, the engine is strugging to refresh the display.
One way around this is to insert 'wait 0 milliseconds' at the end of every cycle after you update the progress. This seems to give the engine 'breathing room' to update the user interface. Naturally, it does slow things down a bit, so you may only want to do this every 20th iteration.

Jan Schenkel.

Perfect Fix

Posted: Sun Dec 28, 2008 5:59 pm
by David_USA
Thank you for this insight.

I have implemented your suggestion and it worked great.

Best Regards,

David J. Lamp