Scanning gets stuck at "Busy..."

Issue #53 new
Andre Alves de Lima created an issue

Hi!

When I try to use the Sample.Winform with my HP LaserJet M1130 MFP, the scanning process gets stuck in this "Busy..." state:

2015-12-07_06-13-40.png

The scanner makes the acquisition, but, it gets stuck in this state. Has anyone else faced this issue or something similar?

I tried forcing the UI (SourceEnableMode.ShowUI), then the scanner UI is shown without problems. However, when I click "Accept" on the scanner UI, it scans but the acquisition window is not closed and the application doesn't receive the image (the DataTransferred event is not triggered).

2015-12-07_06-17-28.png

One last thing I tried to do was to set the PreferNewDSM to false, but then it says that it could not load "twain_32.dll".

Any suggestions?

Thank you very much!

Comments (2)

  1. Eugene Wang repo owner

    Some ideas to see if it makes any difference.

    • When the progress bar appear to be stuck, try clicking on it or refocus (like alt tab).
    • In the winform sample where it calls _twain.Open(), use the commented line below it instead (one that takes WindowsFormsMessageLoopHook).
  2. Andre Alves de Lima reporter

    Hi Eugene!

    Thank you very much for your reply. Unfortunately, both suggestions didn't make any difference on the result. One extra thing that I tried was to restart the computer, because I was also making some tests with WIA and thought maybe the WIA API had left something on a wrong state, but, it also had no effect.

    Maybe there is something wrong with my printer's TWAIN driver (although it says it is TWAIN compliant on the specification). I don't know.

    Thanks anyway!

  3. Log in to comment