Page 1 of 1

DeleteTask function crash

Posted: Thu May 16, 2013 9:44 am
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.

Posted: Fri May 17, 2013 10:37 am
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.