Problem with multithreading
Posted on 2003-11-26
I have a mulitthreaded applicaiton, and I'm having a problem. When data comes in from the server, it updates some of the controls on a form. When I then make a call from the GUI thread (button click). I'm getting an error everytime I hit this line:
foreach(ListViewItem item in contactListView.Items)
that says. "Error, thread was being stopped". All the threads that aren't the GUI thread have
t.IsBackground = true;
I haven't seen this error before and I am never explicitly stopping threads through code. Any thoughts?