Community

Limit processing duration

Hi

Is it possible to set max document processing duration (kind of timeout)

And if the duration is exceeded the scan will be stopped (and then file skipped or exception...)?

Thx

0

Comments

1 comment

  • Avatar
    Aleksandr Egorov

    Hi

    You can implement a custom timer, check its value and use IScanCallback Interface to stop processing.

    You should also implement this callback on your side. Particularly, pay attention to OnImageScanned method. It has VARIANT_BOOL* Cancel argument which you should set to true inside method's implementation once timeout is reached.
     

    Best regards,

    Aleksandr 

    0

Please sign in to leave a comment.