Cyclical alarm with no expiration under Non-Vista machines

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
rhett.price
Posts: 2
Joined: Fri Jan 17, 2014 8:07 pm

Cyclical alarm with no expiration under Non-Vista machines

Post by rhett.price »

I really need a way to set a "Cyclical" type alarms for Non-Vista to never expire. I can do this with Vista version by never setting Duration. But with Non-Vista machines - some type of Duration seems to be required - otherwise I get an error. Hence my code below. However this only sets it to run for a year.

If not Scheduler.RunningVistaOrLater then
FTask.Triggers[0].Duration := 365 * 24 * 60; // run for 1 year

Any way to fix this?

- Rhett

isiticov
Site Admin
Posts: 2265
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Just set

Code: Select all

HasEndDate := False;
KillAtDurationEnd := False;
for TTrigger.
Best regards,
Igor Sitikov.

Post Reply