Home › Forums › TWAIN Classic › Different applications show different source list
- This topic has 7 replies, 3 voices, and was last updated 14 years, 6 months ago by jimwatters.
- AuthorPosts
Hi All,
This is my first post, I’m a TWAIN newb. and I signed up here because I’m really, really stuck and confused about a problem I’ve got.
QUICK background: We have an application that we use for scanning documents and data entry (typical I’m sure). I purchased a TWAIN component (class library) to ease the communication with the scanner. After several bad experiences with entry level scanners and MFC machines I finally secured the budget for a Fujitsu 6130. I was disappointed when my application was still having trouble with even this scanner and it’s high quality drivers. I involved the developer of the component and they have been unable to reproduce the problems on their end.
At this point I’m stuck. The component developer is still looking into the problem, but I suspect it’s not a top priority because other applications are exhibiting the same symptoms.
So with that out of the way, here are the details:
Adobe products and the twacker application show two sources in the Select Source dialog:
- FUJITSU fi-6130dj 9.21 (32-32)
WIA-fi-6130dj 1.0 (32-32)OpenOffic and my application (which is using the TWAIN component mentioned above) displays:
- FUJITSU fi-6130dj
The dialogs also look slightly different, here are screen shots:
- Twacker version: http://picasaweb.google.com/SteveKlett/NSUGStuff#5382537600038036962
OpenOffice version: http://picasaweb.google.com/SteveKlett/NSUGStuff#5382537597743678530I can scan just fine from adobe (photoshop, acrobat, etc) and twacker. When I try to scan from OpenOffice the driver scan dialog is displayed and when I press the Scan button it hangs. The scanner does nothing, the dialog is modal so I can’t cancel it or anything. The only way I can gain control of the scanner again (or release it) is to reboot.
I’ve observed that applications that display the TWAIN and the WIA sources work and applications that ONLY show the TWAIN source do not. While speaking with the component developer he was VERY surprised and perplexed by the two sources lists. he was saying that “this is a TWAIN provided dialog, I really don’t see how they can be different” and I agree with him – it IS really strange.
I’ve tried on my computer at home and experienced the same exact behavior. Both my work and home computers are brand new installs of XP Pro and there are NO other scanners or TWAIN sources installed.
So I’m stuck, I don’t know what else to do. I’ve had this $1k scanner sitting here for over 2 weeks and I’m starting to get increasingly uncomfortable questions from my boss. I don’t know what to tell him, I have no idea what else to try.
I’m really hoping that someone here will have some ideas and that the varying SELECT dialogs will be a clue as to what may be going on.
Thanks for reading.
-Steve 🙁
@sklett wrote:
…he was saying that “this is a TWAIN provided dialog, I really don’t see how they can be different”…
Here’s one piece of your puzzle:
The select source dialog is part of the TWAIN Data Source Manager. The dialog that lists 2 sources is DSM 1.x [c:windowstwain_32.dll]. The other one is DSM 2.0 [c:windowssystem32twaindsm.dll].
–
@dpenney wrote:
The dialog that lists 2 sources is DSM 1.x [c:windowstwain_32.dll]. The other one is DSM 2.0 [c:windowssystem32twaindsm.dll on 32-bit OS’s]
THANKS for the reply! I eagerly checked the computer here at the office that DOES work and it didn’t have the DSM 2.0 file – naturally this was very encouraging so I then checked my development machine and was bummed that I also don’t have that file.
I ran a search for the DSM 2.0 dll you mention and it’s not found on either system.
On the machine that is not working I do have this file: “C:WINDOWSsystem32TWAIN_32.DLL” and that file is not located on the machine that does work.
So I moved that file into a temp folder and tried OpenOffice and it shows two sources. So it’s reverting to DSM 1.0 – GOOD!
I then tried to actually scan and it works! ( High Five!! )
THANK YOU!
@sklett wrote:
On the machine that is not working I do have this file: “C:WINDOWSsystem32TWAIN_32.DLL” and that file is not located on the machine that does work… So I moved that file into a temp folder and tried OpenOffice…and it works!
Good to hear you got it working. One explanation would be that DSM v2.0 was somehow installed in sytem32 but named twain_32.dll (should be twaindsm.dll). If so, applications trying to load DSM v1.x could load DSM v2.0 due to Windows DLL search path rules.
Please confirm the version of the twain_32.dll that you found in system32. If it is v2.0, do you know how it got in there?
–
@dpenney wrote:
Please confirm the version of the twain_32.dll that you found in system32. If it is v2.0, do you know how it got in there?
–
The search path and file name theory seems like what happened. But then I check the file version per your instruction and it’s version 1.6.0.3
I really don’t know how that file made it there. Acrobat, Illustrator and Photoshop are the only applications I have installed that I would suspect of doing something like that.
@sklett wrote:
I really don’t know how that file made it there.
That is very odd. DSM v1.x should not be in system32. For reference, the c:windowstwain_32.dll on my WinXP-SP3 machine is v1.7.1.1.
Perhaps the select source dialog in DSM v1.6.0.3 is similar to the one in v2.0 in that it does not support the non-standard wiatwain.ds (i.e. source with the “WIA-” prefix). That oddball DS from Microsoft does not export a DS_Entry function as required by the specification.
Please post back if you figure out how DSM v1.6.0.3 got in system32.
–
@dpenney wrote:
For reference, the c:windowstwain_32.dll on my WinXP-SP3 machine is v1.7.1.1.
I’ve got the same version at that location.
@dpenney wrote:
Perhaps the select That oddball DS from Microsoft does not export a DS_Entry function as required by the specification.-
You’re saying Microsoft deviated from the specification?? 😉
@dpenney wrote:
Please post back if you figure out how DSM v1.6.0.3 got in system32.
will do, promise. Thanks again.
I am also interested in the version of the TWAIN 2.0 DSM that was in the system32 folder of the machine that was not working. The c:windowssystem32twaindsm.dl file
The most recent version 2.0.9 of this file should work fine if a second copy of the old DSM is located in the system folder.
http://sourceforge.net/projects/twain-dsm/Jim Watters
- AuthorPosts