By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,671 Members | 1,393 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,671 IT Pros & Developers. It's quick & easy.

general windows services question

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.