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

SeqError opening-closing-opening different sources.

Forums › TWAIN Classic › SeqError opening-closing-opening different sources.

  • This topic has 1 reply, 2 voices, and was last updated 9 years ago by Adam.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • April 10, 2012 at 2:51 pm #22742 Reply
    fcetrini
    Participant
    • Topics - 2
    • Replies - 0
    • Total Posts - 2

    Hi everybody, here is my problem:
    my application needs to open, configure and close multiple twain sources into the same execution run.
    I mean, enumerate sources, open the first one, get parameters, close it, then open a second source and so on.

    This is my calls sequence:
    1) Control/Parent/OpenDSM to open the source manager
    2) Control/Identity/OpenDs to open the selected source
    3) Control/UserInterface/EnableDsUiOnly to show twain configuration panel
    4) Control/CustomDSData/Get to retrieve parameters
    5) Control/Identity/CloseDs to close the selected source
    6) Control/Parent/CloseDsm to close the source manager

    Now, this sequence works fine as long as the sources are different versions of the same driver: e.g. kodak i1210 and i1220 shares the same driver, but if I try to jump from a source referring driver A to a source referring driver B I got seqError on the second source opening call (Control/Identity/OpenDs).

    I’ve also tried to jump between different driver without closing and reopening source manager, but the behavior is the same.
    Any ideas? Thank you!

    Fabio

    April 18, 2012 at 8:40 am #25566 Reply
    Adam
    Participant
    • Topics - 0
    • Replies - 43
    • Total Posts - 43

    Hi Fabio,

    Did you try to close the source before your second step?

    1) Control/Parent/OpenDSM to open the source manager
    2) Close source.
    3) Control/Identity/OpenDs to open the selected source
    4) Control/UserInterface/EnableDsUiOnly to show twain configuration panel
    5) Control/CustomDSData/Get to retrieve parameters
    6) Control/Identity/CloseDs to close the selected source
    7) Control/Parent/CloseDsm to close the source manager

    ____________________
    Adam
    Dynamsoft: The leading provider of version control software and TWAIN SDK

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: SeqError opening-closing-opening different sources.
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.