SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

StartScheduler v. Open

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
CarlDippel



Joined: 13 Nov 2003
Posts: 15
Location: LI, NY

PostPosted: Sun Jun 20, 2004 10:46 am    Post subject: StartScheduler v. Open Reply with quote

TaskScheduler has two similar methods:
Code:
function StartScheduler: Boolean;

and
Code:
procedure Open;

Is there a difference other than the obvious, one is a function and the other is a procedure? When should I use one as opposed to the other? -Carl

Carl Dippel carl@dippel.us www.dippel.us/carl
Back to top
View user's profile Send private message Send e-mail Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2103

PostPosted: Mon Jun 21, 2004 7:07 am    Post subject: Reply with quote

StartScheduler checks if Task Scheduler Service is working and in case not starts this service. This function "silently" checks if service is working.
Open calls StartScheduler and initializes Scheduler interface. In case of any error it raizes excpetion.

So to code in "good" way it would be useful to call StartScheduler firstly before calling Open and in case StartScheduler returns False then to show warning message to user that under his account it is impossible to use/start Scheduler service.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group