TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

Different applications show different source list

Forums › TWAIN Classic › Different applications show different source list

  • This topic has 7 replies, 3 voices, and was last updated 11 years, 4 months ago by jimwatters.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • September 17, 2009 at 8:41 pm #22535 Reply
    sklett
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    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#5382537597743678530

    I 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 🙁

    September 17, 2009 at 10:12 pm #25029 Reply
    dpenney
    Participant
    • Topics - 3
    • Replies - 66
    • Total Posts - 69

    @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].

    –

    September 17, 2009 at 10:26 pm #25030 Reply
    sklett
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    @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!

    September 17, 2009 at 11:13 pm #25031 Reply
    dpenney
    Participant
    • Topics - 3
    • Replies - 66
    • Total Posts - 69

    @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?

    –

    September 17, 2009 at 11:22 pm #25032 Reply
    sklett
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    @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.

    September 18, 2009 at 12:00 am #25033 Reply
    dpenney
    Participant
    • Topics - 3
    • Replies - 66
    • Total Posts - 69

    @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.

    –

    September 18, 2009 at 12:06 am #25034 Reply
    sklett
    Participant
    • Topics - 1
    • Replies - 3
    • Total Posts - 4

    @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.

    September 19, 2009 at 6:09 pm #25035 Reply
    jimwatters
    Participant
    • Topics - 2
    • Replies - 72
    • Total Posts - 74

    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

  • Author
    Posts
Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Different applications show different source list
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.