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

Problem with multilple twain session from same process

Forums › TWAIN Classic › Problem with multilple twain session from same process

  • This topic has 2 replies, 3 voices, and was last updated 8 years, 7 months ago by gabe.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • August 4, 2012 at 4:52 pm #22772 Reply
    biswajitbiee
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    Hi,
    I am a twain application as well as DS developer. Presently I am facing one problem during the development of
    one application which opens two DS at the same time. The MSG_OPENDS for the second DS gets failed when the first
    one is already opened. I am using distinct DSM session for each of the DS and two different window handle from
    two different thread of the process. I have also checked that the DSM is assigning different app id for each of the session.

    I have checked the twain 2.1 spec, but could not find anything related to this kind of problem. Any suggestion/help will
    be well appreciated.

    Thanks
    Biswajit

    August 4, 2012 at 10:40 pm #25669 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    The DSM supports this because it was the only way it could work back
    in the days of 16 bit Windows. And even then there would have been
    issues.

    Your app is trying to run two drivers in the same process space, the
    list of problems you can run into is substantial.

    You’ll have better success if you run each TWAIN driver in its own process…

    — Mark

    September 3, 2012 at 7:19 pm #25670 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    the list of problems you can run into is substantial

    ha. subtle.

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Problem with multilple twain session from same process
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

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • 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.