Question:
What is the proper way to deal with the btTwain controls twerror event in Visual Basic.net?
Once I get any kind of error, I am unable to scan again until the application is restarted.
Solution:
If an unanticipated exception occurs during scanning, try to use the terminate action to uninitialize the scanner (closing data source, closing data source manager, etc).
In this case the scanner will be closed, and you can start a new acquiring process.
for example:
BiTwain.Action = BITWAINLib.enumScanOperations.TWSCAN_TERMINATE
Regards,
Technical Support Team