Symptoms

A program run by adTempus fails with exit code -1073741502 (hexadecimal code C0000142). adTempus reports the following warning in the Job Log:

Step failed because the program run by adTempus returned an exit code of -1073741502, which indicates failure. Consult the documentation or output from the program for information on the meaning of this exit code.

Cause

This exit code indicates that the program has failed to start due to a DLL initialization failure. This has two common causes:

  • There is not enough desktop heap memory for the program to run. If all (or many) of your programs suddenly start failing with this exit code, this is probably the cause. See article K00000329 for more information.
  • The logon session being used for the program does not have the necessary permissions for the selected logon session or virtual desktop.

Resolution

On Windows Vista, Windows Server 2008, and later operating systems, this error may occur if the job is running under an Administrator account but you have not checked the Run with highest privileges option for the job. (This option is found below the User Account on the General page of the job's properties.)

If the Run with highest privileges setting is not the cause of the problem, the problem may be the result of adTempus failing to obtain the necessary permissions for the program to run in the selected logon session or virtual desktop. If the job is using the "User's Session" or "Console" User Interaction setting, and it is not necessary for the job to run interactively, change the User Interaction setting to "Hidden" and try running the job again.

If none of these is the cause, review article K00000329 regarding desktop heap memory issues.