Question

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.
Was it helpful?

Solution 3

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

OTHER TIPS

Installing scanner driver may add more than one choice(for the same device) to the available twain sources. Try all of them and check if you have the same issue with all choices.

mmscomputing use TWAIN_32.DLL when the OS is 32bit or the twain version is less than 2.0 While they use TWINDSM.dll when the system is 64bit or twain version is 2.0.

http://thorntonzone.com/manuals/Compression/Fax,%20IBM%20MMR/MMSC/mmsc/uk/co/mmscomputing/device/twain/

I think your applet is hanging when using twain 2.0 scanners and working fine when using <2.0 scanners so to be sure try the following:

1- Copy the file C:\Windows\System32\TWAINDSM.dll to a safe place

2- Delete the file C:\Windows\System32\TWAINDSM.dll

3- Try the applet

I think your applet will work fine after that.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top