Monitoring Threads

Kelly Baker <[email protected]>
Newsgroups gmane.comp.windows.devel.dotnet.winforms
Message-ID <000001c7719a$67c7ad30$37570790$@com>
I am still working on that dll that runs a process in a different thread,
then raises a NewData event for the calling executable.  I have redone it
using the BackgroundWorker class to do my threading.  I have a
System.Timers.Timer object that runs the RunWorkerAsync method.  In the
RunWorkerCompleted event I raise the NewData event.  But the executable
still raises the cross-threading error when I try to update the form
controls.  Is there a way to programmatically get the thread ID that is
displayed on the Threads debug window?  I would like to log what thread is
active with each operation until I can find where my problem is.

Thanks,
Kelly
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.