IAPI::DelayedTerminate

method DelayedTerminate. (since v2.37.4)

. DelayedTerminate watches and forcibly ends the current process according to a timeout value in seconds

  when a long inactivity (no methods/props called) occurrs or exceptions/errors (like division by zero, out of range,

  variables/methods not found…) hang and freeze the process.

 

  This method may be helpful when tasks are planned to be executed as a single instance at once,

  since a blocking running task will not be stuck forever (e.g SQL Server Agent, Windows Scheduler…)

 

HRESULT DelayedTerminate(
  long timeoutInSeconds
);

Parameters

timeoutInSeconds

[in,defaultvalue(180)] . Value of timeout in seconds (by default: 3mn),

                                Value as 0 or negative, cancels the timeout.

 

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI