473,503 Members | 1,648 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 887
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
7105
by: Bill Sonia | last post by:
I'm written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that once my send mail code is...
1
3278
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
8
4161
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my...
1
10314
by: Lonewolf | last post by:
Hi everyone, pls forgive me for my lack of knowledge and skills if my question sounds very stupid. I am trying to implement a video conferencing software and I am currently looking at a few set of...
5
1203
by: web1110 | last post by:
Hi y'all, Some questions about some ideas being thrown about. In the dotNet environment, 1: When the system starts, there a a plethora of processes started. Is there a way to add a...
11
3098
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
3
2645
by: Marc Gravell | last post by:
Kind of an open question on best-practice for smart-client design. I'd really appreciate anyones views (preferably with reasoning, but I'll take what I get...). Or if anybody has any useful links...
4
1435
by: alex | last post by:
I'm setting up a c# client/server application in a 3tier system. Everything from the business objects down through the DAL is stateless. This seems to work great for clustering but the...
5
1589
by: Larry | last post by:
Hi, I am a newcomer to VC++ (specifically programming on Microsoft platforms); and I have a very basic question about windows services. Using Windows Services mechanism is it possible to...
5
3269
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
7198
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7319
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6979
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7449
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5570
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
373
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.