D
dumbledad
Hi All,
I have an event handler on the UI thread containing the following lines
of code:
statusBar1.Text = e.msg;
System.Diagnostics.Debug.WriteLine(e.msg);
This is then called repeatedly from the worker thread as it reads lines
from an NNTP server.
The first few thousand calls are written to the VS .Net debug output
pane and the Form's StatusBar, but after a while the StatusBar stops
updating. But if I add in a breakpoint and add a watch on
statusBar1.Text the value is being updated, it's just not reflected in
the UI.
Any idea what's going on and how I should fix it. The StatusBar needs
to be updated frequently as some of the worker tasks take a very long
time so I need the users to be told what is happening.
Thanks,
Tim.
PS Appologies if this post turns up twice, I'm using the Google Groups
2 beta and it <i>seemed</i> to eat my first attempt.
I have an event handler on the UI thread containing the following lines
of code:
statusBar1.Text = e.msg;
System.Diagnostics.Debug.WriteLine(e.msg);
This is then called repeatedly from the worker thread as it reads lines
from an NNTP server.
The first few thousand calls are written to the VS .Net debug output
pane and the Form's StatusBar, but after a while the StatusBar stops
updating. But if I add in a breakpoint and add a watch on
statusBar1.Text the value is being updated, it's just not reflected in
the UI.
Any idea what's going on and how I should fix it. The StatusBar needs
to be updated frequently as some of the worker tasks take a very long
time so I need the users to be told what is happening.
Thanks,
Tim.
PS Appologies if this post turns up twice, I'm using the Google Groups
2 beta and it <i>seemed</i> to eat my first attempt.