SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DeleteTask function crash

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent
View previous topic :: View next topic  
Author Message
softtouch



Joined: 16 May 2013
Posts: 1

PostPosted: Thu May 16, 2013 9:44 am    Post subject: DeleteTask function crash Reply with quote

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.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Fri May 17, 2013 10:37 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> VCL Scheduling Agent All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group