Error retrieving ExitCode value

This forum is designated to discuss SiComponents Scheduling Agent.
Post Reply
yeohray
Posts: 10
Joined: Fri Jan 27, 2012 3:23 am

Error retrieving ExitCode value

Post by yeohray »

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.

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

Post by isiticov »

Do you get this error on any task or on some particular one? Can you reproduce this problemm in any sample project?
Best regards,
Igor Sitikov.

yeohray
Posts: 10
Joined: Fri Jan 27, 2012 3:23 am

Post by yeohray »

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.

yeohray
Posts: 10
Joined: Fri Jan 27, 2012 3:23 am

Post by yeohray »

Any update on this please?

Thanks.

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

Post by isiticov »

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?
Best regards,
Igor Sitikov.

yeohray
Posts: 10
Joined: Fri Jan 27, 2012 3:23 am

Post by yeohray »

I got the 'Access is denied' message in Windows XP SP3.

yeohray
Posts: 10
Joined: Fri Jan 27, 2012 3:23 am

Post by yeohray »

Were you able to reproduce the error?

Post Reply