G
gemartin
Here's my question:
I have Windows Forms app. Suppose the user clicks on the "Processing"
button on the UI. The UI thread then starts processing. During this
processing another thread calls invoke to update a control on the UI.
When the UI thread reaches the end of its time slice--even though it
has not completed it's processing--can the other thread invoke onto
the UI thread and do the update it wants?
My intuition (and some brief testing) tells me that the invoke will
not happen until the UI thread is completely finished with its
processing, but I haven't found it stated anywhere. Does anyone know
the answer to this?
Thanks.
I have Windows Forms app. Suppose the user clicks on the "Processing"
button on the UI. The UI thread then starts processing. During this
processing another thread calls invoke to update a control on the UI.
When the UI thread reaches the end of its time slice--even though it
has not completed it's processing--can the other thread invoke onto
the UI thread and do the update it wants?
My intuition (and some brief testing) tells me that the invoke will
not happen until the UI thread is completely finished with its
processing, but I haven't found it stated anywhere. Does anyone know
the answer to this?
Thanks.