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 

ttAtLogon ends us as ttAtStartup?

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



Joined: 08 Sep 2008
Posts: 4

PostPosted: Tue Jan 06, 2009 9:03 pm    Post subject: ttAtLogon ends us as ttAtStartup? Reply with quote

Hello,
When I create a task using
l_MyTask.Triggers.Add(ttAtLogon);

The setting of Windows is At System Startup

Has anyone using version 2.0 experienced this issue (I am on Windows XP Pro EN SP3).

Thanks!
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Jan 07, 2009 7:00 am    Post subject: Reply with quote

Hello,

Yes, there there was an error in TriggerType declaration. The fix will be available in next update. To fix this on you side you can just do the following:
1. Open saTask.pas unit
2. Find the following lines:

TTriggerType = (ttOnce, ttDaily, ttWeekly, ttMonthlyDate, ttMonthlyDow,
ttAtStartup, ttAtLogon, ttOnIdle, ttOnConnect,
ttOnDisconnect, ttOnLock, ttOnUnlock, ttUnknown);

3 Change them to:

TTriggerType = (ttOnce, ttDaily, ttWeekly, ttMonthlyDate, ttMonthlyDow,
ttOnIdle, ttAtStartup, ttAtLogon, ttOnConnect,
ttOnDisconnect, ttOnLock, ttOnUnlock, ttUnknown);

4. Re-build your project with new modifications.
Back to top
View user's profile Send private message
desjardd



Joined: 08 Sep 2008
Posts: 4

PostPosted: Thu Jan 08, 2009 7:23 pm    Post subject: Reply with quote

Hello,
That solved it, thanks!

Daniel
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