V
Vikram
Thanks Jonathan for the prompt reply.
We have developed a program in C#, originally a windows application, that
was invoking a worker thread. The threading mechanism works fine in this
case. The worker thread gets invoked and an excel file is created.
Currrently, we are trying to convert this program into a windows service. We
have removed any code that writes any kind of output. The service gets
created and we can start it without any error through the component
services. However the worker thread never gets invoked.
We created a totally new solution with a simple windows service project that
just invokes a thread. However, when we ran this service also, the thread
was never invoked. As a simple windows application, it worked.
We even tried using the timer class with the TimerCallback delegate in the
System.Threading namespace.
How can we get threading to work in a windows service?
Many thanks.
Vikram.
We have developed a program in C#, originally a windows application, that
was invoking a worker thread. The threading mechanism works fine in this
case. The worker thread gets invoked and an excel file is created.
Currrently, we are trying to convert this program into a windows service. We
have removed any code that writes any kind of output. The service gets
created and we can start it without any error through the component
services. However the worker thread never gets invoked.
We created a totally new solution with a simple windows service project that
just invokes a thread. However, when we ran this service also, the thread
was never invoked. As a simple windows application, it worked.
We even tried using the timer class with the TimerCallback delegate in the
System.Threading namespace.
How can we get threading to work in a windows service?
Many thanks.
Vikram.