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

Presence of Elmo .DS causes TWAIN to crash?

Forums › TWAIN Classic › Presence of Elmo .DS causes TWAIN to crash?

  • This topic has 4 replies, 2 voices, and was last updated 9 years, 1 month ago by twainuser123.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • November 21, 2011 at 12:22 am #22717 Reply
    twainuser123
    Participant
    • Topics - 9
    • Replies - 28
    • Total Posts - 37

    Hi,

    I have spent many hours trying to debug this issue but was unable to come up with a solution.
    Some of our customers have a Elmo TWAIN driver installed. However, the strange thing is that the presence of this driver in “C:/windows/twain_32” causes TWAIN to crash upon unloading from the application.
    We can rename it to “ElmoVHO.ds.1” (on our own machine) to get rid of the problem, but we can’t do this in the customer’s machine.

    I can reproduce the problem on my machine simply by copying the attached folder into my “C:/windows/twain_32”

    With the latest TWAIN DSM (2.1), our application crashes with no exception.
    However, with the older TWAIN 1.7 DSM dll, our application only crashes if we touch the Elmo source with a MSG_GETDEFAULT/MSG_GETNEXT to get its TW_IDENTITY. If we simply use MSG_GETDEFAULT and Elmo was not selected, the problem does not occur. Strangely, if we force the TWAIN user select dialog to be shown, the application only crashes if the user selects the Elmo source, regardless of whether we do a MSG_GETNEXT on it.

    Does anybody have any ideas? I couldn’t find any bugs in our application and the debugger showed the crash occurring when the TWAIN DSM tried to unload the Elmo .ds.
    Feel free to ask any questions for clarification as I have explored many options.

    November 21, 2011 at 9:42 pm #25495 Reply
    Adam
    Participant
    • Topics - 0
    • Replies - 43
    • Total Posts - 43

    Hi,

    Some questions about your crash issue:

    1. I’m not quite sure when you get the crash. Does it happen on selecting Elmo TWAIN driver as the current source, or on scanning from this specific driver?

    2. Is it a web application or desktop? Did you try getting a dump file to troubleshoot the problem?

    __________________
    Adam
    Dynamsoft: version control | TWAIN SDK

    November 23, 2011 at 3:00 am #25496 Reply
    twainuser123
    Participant
    • Topics - 9
    • Replies - 28
    • Total Posts - 37

    Hi Adam,

    Thanks for the response.

    1. The crash actually happens after the program is done running. Everything works correctly, except the TWAIN DLL crashes upon unloading the elmo ds.
    We don’t actually scan from the Elmo device; we use a different scanner (i.e. epson scanner).
    The crash will happen if we do a MSG_GETDEFAULT or MSG_GETNEXT and grab the TW_IDENTITY for the elmo source.
    Strangely, it seems that the crash does not occur if we ask TWAIN to display some kind of UI window (be it “Select Scanner” or the TWAIN acquisition interface for the scanner that is actually used to scan).

    2. It is a desktop application. We did get a windows dump file, but all it told us was that TWAIN DLL crashed upon unloading the elmo ds.

    I hope this makes sense. I think you would be able to reproduce this as well.

    November 23, 2011 at 8:30 pm #25497 Reply
    Adam
    Participant
    • Topics - 0
    • Replies - 43
    • Total Posts - 43

    Hi,

    It reminds me of an issue our team once had. Crash happens when scanning from some scanners without showing the user interface (it’s a web application though). I’m not sure if it’s the same problem you are experiencing. Our team was able to solve the problem by configuring the thread. Hope it helps.

    __________________
    Adam
    Dynamsoft: version control | TWAIN SDK

    November 24, 2011 at 5:22 pm #25498 Reply
    twainuser123
    Participant
    • Topics - 9
    • Replies - 28
    • Total Posts - 37

    Thanks. This does help because it seems we aren’t isolated in this issue.

    What do you mean by configuring the thread? If possible, could you please give me more details on this so we can work around this issue?

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Presence of Elmo .DS causes TWAIN to crash?
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

  • Hello world
  • Girls of Desire: All babes in one place, crazy, art
  • 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
  • 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.