Home › Forums › TWAIN Classic › SeqError opening-closing-opening different sources.
- This topic has 1 reply, 2 voices, and was last updated 11 years, 11 months ago by Adam.
- AuthorPosts
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 managerNow, 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
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- AuthorPosts