In our C# application we are making use of a thirdparty (Thesycon) COM object which runs threads to write data to a scanning device from 7 files.
I start the writing method by calling
COM.StartWriting()
and I can stop it by calling
COM.StopWriting()
Now the problem is I'm unable to synchronize the threads. This means out of 7 I always miss 4 files. If look in the Debug window, the worker thread type is shown as 'BackGround' and MTA. How do I synch my Main and Worker threads?