DeleteTask function crash

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
Posts: 1
Joined: Thu May 16, 2013 3:39 am

DeleteTask function crash

Post by softtouch »

Windows 8 64 bit
Scheduler 2.0.8

When trying to delete a task, be it in my own code, or even in the demo, I get an exception "Access denied".

DeleteTask crash here (in the DeleteTask function of saTask.pas):
FTaskService.GetFolder(CurrentFolderPath).DeleteTask(CollapseName(pwszName), 0);

As I said, even the demo crash with the same "Access denied", but i can delete the task instantly via Windows task scheduler.

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

Post by isiticov »

May be you run your application as regular user but task requires admin rights. And running Windows Task Scheduler as admin allows deleting this task.
Best regards,
Igor Sitikov.

Post Reply