SetOutOfProcessTimeoutOCR_S

Sets the number of seconds to wait to determine that an out-of-process action has stalled.

Member of namespace

OCR_SR

Syntax

bool SetOutOfProcessTimeoutOCR_S (int Seconds)

Parameters

Seconds - A value indicating the number of seconds to wait to determine that an out-of-process recognition action has stalled.

Returns

False, if the parameter is not numeric or less than 1. Otherwise, True.

Level

Page or Field.

Details

This action sets the number of seconds to wait to determine that an out-of-process action has stalled. If a recognition action does not complete within the specified number of seconds indicated by a SetOutOfProcessTimeoutOCR_S action or a SetEngineTimeoutOCR_S action, it is assumed that the recognition engine has encountered a severe error, and the recognition is removed from memory. A variable with RecogStatus of -1 is created in the calling object in this situation. If SetOutOfProcessTimeoutOCR_S is not called, the default value of 600 seconds is used. In normal scenario, the default value is sufficient and does not need to be changed. You may need to increase this value only if a single page consistently takes more than 10 minutes to complete, which is a very atypical situation.
Example:
SetOutOfProcessTimeoutOCR_S(180)