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

Notification

Icon
Error

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

ryoder  
ryoder

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:56:38 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,328

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

Hello,

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?

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

ryoder  
ryoder

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:15:15 AM(UTC)

Otis  
Guest

Groups: Guests
Posts: 3,040

Was thanked: 1 time(s) in 1 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-2019, Yet Another Forum.NET
This page was generated in 0.138 seconds.