Home › Forums › TWAIN Classic › Problem with multilple twain session from same process
- This topic has 2 replies, 3 voices, and was last updated 11 years, 6 months ago by gabe.
- AuthorPosts
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
BiswajitThe 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
the list of problems you can run into is substantial
ha. subtle.
- AuthorPosts