Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unable to prevent appl shutdown on logoff (sys(2340) bug
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00811518
Message ID:
00811804
Views:
21
>>I log-on to Windows 2000 server console as administrator and ran my
>>VFP 7 application exe file. This exe file issues a command
>>
>>
SYS(2340,1)
>>
>>in form init method and goes to read events state.
>>
>>According to VFP doc SYS(2340,1) prevents application to terminate
>>if user logs off from Windows.
>>
>>Unfortunately, after logging off from windows, my application is also terminated!
>>
>>Any idea or samples how to let VFP appl to continue to run if user logs off or install it as service?
>
>The way I read the docs (8.0), this function only applies to COM servers. Is your application an out of process COM server?

Thank you. I have'nt noticed this.

My application is standalone VFP 7 exe file, not a COM server.

It interfaces with vfpcgi.exe (CGI application shipped with VFP): my appl waits for a file to be
created in c:\temp directory, reads this file and writes response back as file. I use VFP timer to check directory.

Is it possible that my VFP 7 appl continues running when I log off from W2K server ?
Can my appl exe register itself as a COM server or is there some simple solution ?
I remember there was an article in UT about creating w2k services .
Also, there was a file ntsvc.zip .
Unfortunately, I cannot find any more information nor this file.
Andrus
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform