Need help!!! Could not enable/disable a trigger/task

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
chula
Posts: 11
Joined: Tue Nov 27, 2007 10:43 am

Need help!!! Could not enable/disable a trigger/task

Post by chula »

Any thing wrong with these codes?

with TaskItem do
begin
Activate;
If Triggers.Count> 0 then Triggers[0].Enabled := not Triggers[0].Enabled;
Triggers.UpdateTriggers;
Deactivate(true);
end;

Nothing changed to the task :shock:

I also tried to add/remove tfDisabled flag of a taskitem to see if I could the tricks, also no luck.

Please help :)
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Does the Demo application work fine? (There is Disable Selected item in Quick Demos tool-button).
If it doesn't then I guess this is a due to Windows Vista. Version 2.0 will handle this.
Best regards,
Igor Siticov.
chula
Posts: 11
Joined: Tue Nov 27, 2007 10:43 am

Post by chula »

On XP, disable/enable really work.

But on Vista, disable/enable "only seems" working, Next Run says Never, Status says Disable. But the task really still run.

I have not test 2.0 yet cuz Demo 2.0 not working.
Post Reply