Scanner is in use by another process

  Imaging Toolkit

Question:

I’m trying to catch most errors now, like the feeder not being empty, etc. The problem is that I want the user to be able to receive the message, fix the problem and then click to scan again, but the scanner is still being held by some process and can’t be released. I get the message “scanner is in use by another process”. Is there any command to release the scanner object in the FeederEmpty event so that I can rescan again immediately? Is it because I am calling the InitScan function on the load of the page?

Answer:

The ScanInit method (BiTwain.ocx) should be called once, when your application or HTML page starts.

If you want to close the scanner you should set the Action property to TWSCAN_TERMINATE.

In this case the data source and the data source manager will be closed (if they are opened), and the Close event will be raised.

If the data source and the data source manager is closed the application will no longer use the scanner.

 
Regards,
Technical Support Team