Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running as service
Message
De
09/08/2002 18:25:51
 
 
À
07/08/2002 15:41:12
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00687224
Message ID:
00688218
Vues:
17
>I have this simple program for testing:
>***********
>SYS(2340, 1)
>
>DECLARE Sleep IN kernel32 integer delay
>FOR lnCount = 1 TO 5
> Sleep(2000)
> lcAlias = 'test' + STRTRAN(TIME(), ':', '')
> CREATE TABLE (lcAlias) FREE (ff c(4))
> USE IN (lcAlias)
>ENDFOR
>***********
>
>It works as an executable.
>I added that program to services using that:
>instsvr servicetest \srvany.exe

Make sure your service is defined to work with the administrator account first. If it works in admin mode, then, the problem would be related to rights. Otherwise, it might be in the code.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform