Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Boolbar
  Where is Boolbar?
 Upwell
 United Kingdom
 Boolbar
 Tags
Subject: Running a Windows Service
Thread ID: 233864 Message ID: 233864 # Views: 37 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Tuesday, July 07, 2009 3:44:16 PM         
   


I am trying to see if I can get a VFP program to run as a service (and I did get this to work a year ago in a test).
But now, after using INSTSRV and SRVANY to establish my test.exe program as a service I try and start it and get the following message :

The test.exe service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service.

The program will run fine if I don't run it as a service (and stays running until I close it).
Is there a way around this message? (other than doing things with the event viewer logs which is not the problem here).

Is there a nice example of running a VFP app as a service anywhere that addresses this issue? (I tried the one on Calvin Hsia's WebLog and got the same problem).

The end result I am trying to obtain is a windows service that runs a timed event every minute, the only visible sign of the service is an icon in the system tray (I can use FoxTray for that) and has a pop up form for setup & viewing logs from the icon.

Thanks
Boolbar


****
NOTE : I have since found that my registry entries for the services had a mistake, I can't spell :)
Message now doesn't occur! However if anyone has any useful tips on creating windows services I would be interested.



COMPLETE THREAD
Running a Windows Service Posted by Boolbar @ 7/7/2009 3:44:16 PM