Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Creating a VFP9 Service App
Message
De
18/10/2018 08:19:35
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
18/10/2018 04:26:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01662654
Message ID:
01662656
Vues:
90
>Hi All
>
>I need to create a VFP9 application that runs as a service. I have the app built already. What is the current recommended way to set it up as a service in Windows 2010, 2012, or 2016 servers?
>
>TIA

(Just my 0.02 cents)
Probably such an app would use timer to fire at intervals.
In the past I have done that (don't remember how), but then was sorry on the long run. My service app had a timer in it, and for no apparent reason it was deciding to stop after a while, with no recognizable pattern. One had to manually start the service again.
Then I created a C# based service instead as a wrapper that calls my app, it worked flawlessly provided set under correct identity. Later in the years, I converted that to be added to and run via windows scheduler. That one performed best (and much easier to debug in case something doesn't work).

VFP service app: https://blogs.msdn.microsoft.com/calvin_hsia/2004/12/13/creating-a-vfp-application-as-a-service/

And this one, ( surprised to see that it is using my FoxyClasses as a sample - although from outdated link :) https://www.coretechnologies.com/products/AlwaysUp/Apps/RunVisualFoxProAsAWindowsService.html
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform