OnShutDown does not work

  • Thread starter Thread starter Croco Stimpy
  • Start date Start date
C

Croco Stimpy

I have a service that must know when the OS shuts down, so it can perform
some cleanup.
I just found that the OnShutDown event never fires when the machine shuts
down!

I did some checking and lots of others are complaining about the same thing.
Has anyone come up with a work around? Is there a hotfix? Anything?

Visual Studio 2005
Windows Server 2003 SP1.
 
Have you set CanShutdown to true?

I have my OnShutdown event firing, I am trying to test it by sendind a
shutdown event to my service from another app... can anyone help?
 
Back
Top