B
Bill Davidson
All:
I have a Win32 service that takes about 30 seconds to shutdown (give or take
a few seconds). I shut the service down via the 'Services' console on
Windows Server 2003. When the service shuts down in under 30 seconds,
everything is fine. However if the service takes over 30 seconds to shut
down, I get the following error in the System Event Log:
"Timeout (30000 milliseconds) waiting for a transaction response from the
XYZ service."
I get this error even though I frequently increment the 'dwCheckPoint' value
via a call to SetServiceStatus() during the shutdown sequence.
From the MSDN docs on the SetServiceStatus() API, bumping this value should
inform the SCM that my service needs a little more time to shutdown.
Any ideas?
Thanks,
Bill
I have a Win32 service that takes about 30 seconds to shutdown (give or take
a few seconds). I shut the service down via the 'Services' console on
Windows Server 2003. When the service shuts down in under 30 seconds,
everything is fine. However if the service takes over 30 seconds to shut
down, I get the following error in the System Event Log:
"Timeout (30000 milliseconds) waiting for a transaction response from the
XYZ service."
I get this error even though I frequently increment the 'dwCheckPoint' value
via a call to SetServiceStatus() during the shutdown sequence.
From the MSDN docs on the SetServiceStatus() API, bumping this value should
inform the SCM that my service needs a little more time to shutdown.
Any ideas?
Thanks,
Bill