Hi All,

Currently converting a winforms app to a windows service.
It polls a DB and calls some COM stuff.

The COM stuff is fussy and needs an STA thread..

The winforms app used a timer and all the com interop was in the form.

Moving to a service, there is no form, and thread timer callbacks cant
call back to my 'UI' thread,
they are instead run in a threadpool thread which is MTA rather than
STA, so my COM doesn't work...
If I create a new thread the COM objects can't edit the variables
passed in...

Essentially I'm stuck!

Any Ideas?

Reply via email to