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 

Error retrieving ExitCode value

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



Joined: 27 Jan 2012
Posts: 10

PostPosted: Mon Feb 13, 2012 9:28 am    Post subject: Error retrieving ExitCode value Reply with quote

When retrieving the ExitCode property for a task, I get a 'Access is denied' message. I'm currently logged on as an administrator on the local machine, and the task is a local task.

I'm using version 2.0.7.1. Any help would be much appreciated.

Thanks in advance.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Tue Feb 14, 2012 8:43 am    Post subject: Reply with quote

Do you get this error on any task or on some particular one? Can you reproduce this problemm in any sample project?
Back to top
View user's profile Send private message
yeohray



Joined: 27 Jan 2012
Posts: 10

PostPosted: Tue Feb 14, 2012 9:05 am    Post subject: Reply with quote

It seems to happen only when the executable file does not exist.

E.g. if I have a task that runs dummy.exe (an empty Delphi console app), I can retrieve the exit code fine. If I now delete dummy.exe and the task runs, Windows Scheduler reports a 'Could not start' status, but Scheduling Agent will raise an 'Access is denied' error when it tries to retrieve the exit code.

Thanks.
Back to top
View user's profile Send private message
yeohray



Joined: 27 Jan 2012
Posts: 10

PostPosted: Wed Feb 22, 2012 6:55 am    Post subject: Reply with quote

Any update on this please?

Thanks.
Back to top
View user's profile Send private message
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Wed Feb 22, 2012 5:53 pm    Post subject: Reply with quote

When we reproduce this the ExitCode returns '80070002' HRESULT value which means "The system cannot find the file specified."
What OS version do you use?
Back to top
View user's profile Send private message
yeohray



Joined: 27 Jan 2012
Posts: 10

PostPosted: Mon Mar 05, 2012 10:47 am    Post subject: Reply with quote

I got the 'Access is denied' message in Windows XP SP3.
Back to top
View user's profile Send private message
yeohray



Joined: 27 Jan 2012
Posts: 10

PostPosted: Thu Mar 22, 2012 9:32 am    Post subject: Reply with quote

Were you able to reproduce the error?
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