Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

Update for issue #10 #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vincenormand
Copy link
Contributor

Issue : #10
Removed the "if" condition and put everything in a "try/catch".

This problem happens only on some scanners.
The call to "Twain32Native.DsmIdentity" must be done even if the call to "Twain32Native.DsUserInterface" fails.
If the datasource is not completely closed after an error, we are not able to re-open it without re-initialising the Twain class.

Steps to reproduce :

  • Start a scan process without paper in the tray (Exception is thrown to notify there is not paper)
  • Restart a scan process without paper in the tray (Exception is thrown, Error opening datasource)

Issue : tmyroadctfig#10
Removed the "if" condition and put everything in a "try/catch".

This problem happens only on some scanners.
The call to "Twain32Native.DsmIdentity" must be done even if the call to "Twain32Native.DsUserInterface" fails.
If the datasource is not completely closed after an error, we are not able to re-open it without re-initialising the Twain class.

Steps to reproduce :
 - Start a scan process without paper in the tray (Exception is thrown to notify there is not paper)
 - Restart a scan process without paper in the tray (Exception is thrown, Error opening datasource)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant