ttAtLogon ends us as ttAtStartup?

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
desjardd
Posts: 4
Joined: Mon Sep 08, 2008 8:56 pm

ttAtLogon ends us as ttAtStartup?

Post by desjardd »

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!
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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.
Best regards,
Igor Siticov.
desjardd
Posts: 4
Joined: Mon Sep 08, 2008 8:56 pm

Post by desjardd »

Hello,
That solved it, thanks!

Daniel
Post Reply