Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running as a service Shutdown
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01399470
Message ID:
01399928
Vues:
68
>Sorry, I misunderstood your original question. I think the problem is that the service is actually running SRVANY.EXE which then calls your VFP EXE. I don't think SRVANY checks to see if your application is continuously running. To work around this issue I would suggest the following:
>
>1. If your are only deploying this to a small number of PCs, consider using a 3rd party product like FireDaemon (http://www.firedaemon.com/). This program will let you run almost any program as a service and has some cool features such as auto-restart after failure.
>
>2. If you are deploying to many PCs (i.e. vertical market application), consider using a 3rd party product like
>Server for ActiveX (http://www.dart.com/). This ActiveX control let's you register your application as a real windows service, has hooks so that you can respond to a service stop/pause command (i.e. close tables and quit). It also includes methods for writing to the windows event log.


Thanks for the tips Frank, I have seen Dart mentioned on here in several old threads, however they do not list a product that does what you are mentioning. I called them and they did not know what I needed either from their products.

The firedaemon doesn't seem to deal gracefully with letting VFP know to shutdown either (from the docs). I have seen several utilities like this one, the clean shutdown is what I need right now.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform