Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP app as NT Service - How to cancel
Message
From
14/06/2005 13:32:59
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
VFP app as NT Service - How to cancel
Miscellaneous
Thread ID:
01023208
Message ID:
01023208
Views:
66
I have an app that I can has been set up as an NT service. Before I had done so, it had been set up as a standalone exe that would run in the background and execute a routine every 10 secs or so. The app would run continuously until a flag file was "seen" by the app, which will trigger the app to exit.

However, when run as a service, although the app stops fine, I am concerned about the srvany process remaining in memory. Is there an API call that could be issued to that would allow me to gracefully exit the app before terminating the service.

In other words if the command,"net stop servicename", were issued, I would like it the app to finish processing what it is currently doing, check for the stop request, exit the app & vfp then terminate.

Any ideas?

Thanks
L.A.Long
ProgRes
lalong1@charter.net
Next
Reply
Map
View

Click here to load this message in the networking platform