My application is heavily depended on threads to do the complex processing of very large data. The UI needs to be updated as the processing is being done. I know and tried to used BackgroundWorker's
OnProgressChanged
and RunWorkerCompleted
methods to update the UI. Also using Invoke
method of the UI thread to update. Everything seems to work fine on Win XP 32 bit and 64 bit OS. On Win Vista and Win 7 (32 and 64 bit), the application randomly hangs while updating the UI by using Invoke
method.
Does the behavior of Invoke
changes on different Win OS?
What are the other ways of updating UI from thread apart from Invoke
?
Thanks