Who Needs BackgroundWorker....
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
And they didn't even have the decency to use Thread.Sleep in the loop?
StartLongRunningProcess()
While (Some Condition That Last 3 Minutes)
Application.DoEvents()
End WhileStartAnotherLongRunningProcess()
While (Some Condition That Last 3 Minutes)
Application.DoEvents()
End WhileEven pseudo code benefits from indents and PRE tags. :)
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
-
Lazy@$$Co-Worker.DoEvents! :laugh:
It's an OO world.
-
Lazy@$$Co-Worker.DoEvents! :laugh:
It's an OO world.
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
By the way, how does the author know that long running process takes exactly 3 minutes? :laugh: And where is parallelism? It can spare you 3 minutes!
-
StartLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While StartAnotherLongRunningProcess() While (Some Condition That Last 3 Minutes) Application.DoEvents() End While ...found this today, almost died.
-
I found found only one place - when using the unmanged function "SHAppBarMessage", with ABM_SETPOS.