S
SPG
Hi,
I have a problem where a COM component used in our C# windows app works fine
using callbacks etc, but as soon as we compile to a windows service, we no
longer get notification events from the COM object.
After some investigation, I found that the win app starts in an STA thread
state, but the service starts as MTA. I no longer get any events from the
COM object.
I was told that the event pump will not work in the .NET windows service.
Can anyone shed some light (or a workaround)?
Steve
I have a problem where a COM component used in our C# windows app works fine
using callbacks etc, but as soon as we compile to a windows service, we no
longer get notification events from the COM object.
After some investigation, I found that the win app starts in an STA thread
state, but the service starts as MTA. I no longer get any events from the
COM object.
I was told that the event pump will not work in the .NET windows service.
Can anyone shed some light (or a workaround)?
Steve