|How to close progress bar only after all asyncExecs? [message #800347]
||Fri, 17 February 2012 00:47
| Josh Hester
Registered: July 2009
I've implemented an swt progress bar, and it's working fine. The problem came when I inserted a statement to dispose of my display when I get a progress complete event.|
If the progress happens very rapidly, the complete message comes before all of the progress events have been displayed, leading to the progress bar showing up very quickly and then disappearing before it shows 100%.
What I'd like to do is wait a few seconds after the complete message has been received before disposing of the display. For whatever reason I either can't get it to wait before disposing, or I get a Threading exception when I try to operate on the display.
Is there a standard way to do this? Any advice would be helpful.
Powered by FUDForum
. Page generated in 0.10227 seconds