Service does not start after a reboot

  • Thread starter Thread starter Suman
  • Start date Start date
S

Suman

We are facing a problem with a Service we developed. It does not start
after a re-boot. We can Start/Stop the service from the interfacing
Application and the Services Control Panel all day long. But it does
not start after a reboot.

Details
We have implemented the Service using CAtlServiceModuleT (ATL 7.0).

For initialization and un-initialization, we have overridden the
PreMessageLoop and the PostMessageLoop. In the initialization we
create the internal COM objects and start a Scheduling engine (A class
with a Thread pool). These are the only two functions we have
overridden


The Error logged in the event viewer is
· Timeout (30000 milliseconds) waiting for the service to
connect.

· The service failed to start due to the following error:

The service did not respond to the start or control request in a
timely fashion.
 
Hi

Under what account is the service running? What's this thread pool? The
Win2k+ one? A custom one? How is it implemented, with QueueUserAPC (possible
COM problems). Why don't you trace in a file and have a look at the service
start up flow...

Cheers,
Stoyan
 
Back
Top