Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Windows Service Stop, Pause message
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01403160
Message ID:
01403233
Views:
41
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform