I'm working with an COM object that control some peripherals. I'm trying to start a new thread that will continuously doing something on that COM.
My first question is how should I do this I've tried the BackgroundWorker control. It seems quite easy to work at first. However, I've got an exception saying "COM object that has been separated from its underlying RCW cannot be used" when I close the application. After some research, I found that it maybe caused by the COM object that has been disposed while my thread is sleeping. What's the proper way to close the application By the way, do I need to close the thread by some means
I'm new to thread programming. Any suggestion is welcome.

Problem with Thread and COM object
Kari
PaulCowan
take a look at http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemruntimeinteropservicesmarshalclassreleasecomobjecttopic.asp
Jason1