Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, January 12, 2006 11:27:11 AM(UTC)


Groups: Registered
Posts: 7

I am using v14.5 and if there is an unhandled exception in my application and I don't close down the TwainSession object, the scanner is unusable in any program until I do a full reboot. 

Additionally, I can't even detect if the scanner is available using the TwainSession because simply doing a QuickWatch on the object pops up the Twain scanner error dialog over and over again saying the scanner power is unplugged until I kill the process.



Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Monday, January 16, 2006 12:51:38 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)


What is the exact programming interface (COM, API, .Net, etc.) that you use?
Can you pleas provide me with a code snippet that shows the problem, in order to check this issue on my machine?

Maen Badwan
LEADTOOLS Technical Support
#3 Posted : Thursday, January 19, 2006 4:50:02 AM(UTC)


Groups: Registered
Posts: 7

I use DotNet 14.5 and you can test this by running the twainmultipage demo and commenting out the twainSession.ShutDown() method.  The next time you run the demo you cant do anything with the twainsession and no other programs on the machine that use twain will work.

#4 Posted : Friday, January 20, 2006 11:10:15 AM(UTC)


Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

You must call the TwainSession.ShutDown() method when you are done with the device. This disconnects LEADTOOLS from the device driver. If you do not disconnect, the device will not be useable by any other application. This is true for any TWAIN device and any TWAIN application.
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.123 seconds.