>Can you use ON SHUTDOWN instead?
Yes I could and have but that does not fire either. According to my log files....
From what I can tell there are 3 basic solutions to running a VFP app as a service that I have found.
1) The Srvany Solution
2) The XYNTService Solution
3) And an FLL solution from Tracy Pearson
In 1 and 2, the Service manager calls another exe which loads your app. So I am assuming the Service manager would talk to these exe's on shutdown these EXE's would in return talk to my VFP exe
In 3 the Service Manager loads my VFP exe, I load an FLL which then handles somethings that are difficult to do from within VFP.
With 1 the app is killed before any communications is completed to the vfp exe
With 2 there is a timeout feature that can be set for the XYNTService to wait before it attempts to kill the vfp exe.
With 3 its a new piece of code, not meant for the general market, so at this point we went with 2
ON SHUTDOWN does not fire, unless my code has a problem which could be the same for doing the bindevent I showed above. At this point I am trying to verify what is the normal actual shutdown message, trying to cross check things.
What ben makes tracks for what wil be. Words in the air pirnt foot steps on the groun for us to put our feet in to.
Riddley Walker