Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting stuck in Task Scheduler
Message
From
29/01/2014 06:48:07
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
28/01/2014 16:30:53
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01592512
Message ID:
01592540
Views:
58
>Hi All:
>
>I have a program that I have compiled into an EXE. It ends off with QUIT. When I execute it by double clicking the EXE, it does what it is supposed to do and exits gracefully. But when I run it from the task scheduler, it gets stuck somewhere in the program. I do not know where, since I have removed all user interface statements like SET MESSAGE. Also the config.fpw has SCREEN=OFF.
>
>Is there a rule about what statements are forbidden when running from the scheduler?

Yes, no wait states. Mind you, even an error dialog introduces a wait state (the cancel-ignore-help dialog does) so make sure you have a foolproof error handler which will just log the error and quit the app (or ignore the error and let the app continue).

You can also set the scheduler to kill it if it hasn't finished after some set time. Then study the log.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform