471,342 Members | 1,632 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,342 software developers and data experts.

general windows services question

When you hit the OnStart() method, the windows service manager waits
30 seconds for that method to return.

What happens when that method doesn't return, besides receiving the
message "The service did not report an error"? Would the manager
attempt to shut down the service? Does it depend on the what the
service was written in?

-Ross
Jul 3 '08 #1
1 846
When you hit the OnStart() method, the windows service manager waits
30 seconds for that method to return.

What happens when that method doesn't return, besides receiving the
message "The service did not report an error"? Would the manager
attempt to shut down the service?
If the service doesn't start quickly enough typically the Service Control
Manager (SCM) will just kill the service, including if you're in the middle
of debugging the startup code. Can't remember if an error gets reported in
the error log on the machine, but I imagine that it would.
Does it depend on the what the service was written in?
Nope, that all is handled by the SCM.
"Ross" <ro*********@gmail.comwrote in message
news:e5**********************************@b1g2000h sg.googlegroups.com...
When you hit the OnStart() method, the windows service manager waits
30 seconds for that method to return.

What happens when that method doesn't return, besides receiving the
message "The service did not report an error"? Would the manager
attempt to shut down the service? Does it depend on the what the
service was written in?

-Ross
Jul 4 '08 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Bill Sonia | last post: by
8 posts views Thread by Bill Sonia | last post: by
5 posts views Thread by web1110 | last post: by
4 posts views Thread by alex | last post: by
5 posts views Thread by Larry | last post: by
5 posts views Thread by dm3281 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.