Search code examples
javaapplettwainimage-scanner

uk.co.mmscomputing.device.twain applet hang


I've an applet to communicate with scanner using TWAIN and uk.co.mmscomputing.device.twain API.

In some circumstances (not dependent from version, in my case with 32bit OS) i have a problem during applet load, it seems to be in hang, TWAIN interface is slowly loaded and doesn't respond in the moment in which it appears.

At the end, i got this message

9uk.co.mmscomputing.device.twain.TwainSource.enable:
    scan timed out. Close data source.
uk.co.mmscomputing.device.twain.TwainSource.enable:
    scan timed out Close data source.

Solution

  • Installing twaindsm.dll into correct folder (depending on 32/64 bit OS version) solve the problem