LEADTOOLS Support
Imaging
Imaging SDK Questions
How to detect when scanner start to scan , time out happened?
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, August 12, 2009 1:23:26 AM(UTC)
Groups: Registered
Posts: 11
Public Function ScanStartMlt() As Integer
...
...
' start to scan
AddHandler _twSession.AcquirePage, AddressOf AcquirePageEvent
_twSession.Acquire(TwainUserInterfaceFlags.None)
RemoveHandler _twSession.AcquirePage, AddressOf AcquirePageEvent
...
...
End Function
My problem is :
When I call method ScanStartMlt,I shutdown my scanner(eg,powerdown), my procedure is stop(not exit).But no exception occured.My form couldn't give me any response.I can't do anything except force to exit my procedure.
How to resolve this problem.
For example ,when this problem has happened,I only want to wait 10 seconds.If I wait times > 10 seconds, give me a Messge from Form(But now I can't do anything).
#2
Posted
:
Wednesday, August 12, 2009 1:33:56 AM(UTC)
Groups: Registered
Posts: 11
My leadtool's version is LEADTOOLS 15.0J.
Waiting for you reply.
:)
#3
Posted
:
Wednesday, August 12, 2009 7:00:18 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Could you please test this using Twacker utility from the Twain Working Group? You can get it from here:
http://www.twain.org/devfiles/twack.zipTo test, perform scanning from within Twacker for multiple pages, and immediately after scanning begins, turn of the scanner. Does Twacker respond or does it hang too?
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#4
Posted
:
Wednesday, August 12, 2009 4:35:48 PM(UTC)
Groups: Registered
Posts: 11
Thank you for your reply.
I follow you description to do it.
Messagebox is popuped.
Title:DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET
Content:TWRC_CANCEL
sears attached the following image(s):
#5
Posted
:
Wednesday, August 12, 2009 4:39:51 PM(UTC)
Groups: Registered
Posts: 11
OK button clicked.
sears attached the following image(s):
#6
Posted
:
Wednesday, August 12, 2009 4:48:10 PM(UTC)
Groups: Registered
Posts: 11
next OK button click.
c.gif is popuped
Ok button click,b.tif is popuped too.
Like this,messagebox is looped popup.
Always can't close all the messagebox except force to exit the TWacker.
sears attached the following image(s):
#7
Posted
:
Thursday, August 13, 2009 4:23:37 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
When exactly do you get these messages?
To disable the Twacker messages, please do the following:
1. Open the Twack_32.exe.
2. Select the menu "File"\"Message Level"\"None"
Then use the following instructions to check the same issue using Twacker:
2. Select the menu "File"\"Select Source", and select your scanner twain driver.
3. Select the menu "File"\"Acquire", and scan multiple pages, and immediately after scanning begins, turn of the scanner. Does Twacker respond or does it hang too?
Please let me know how it goes.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#8
Posted
:
Thursday, August 13, 2009 11:39:36 PM(UTC)
Groups: Registered
Posts: 11
Thank you for your reply.
I use your description to check the same issue using Twacker.
I wait about 10 minutes.
But the Twacker no respond and hang too.
My scannar is Kadok i260.
#9
Posted
:
Saturday, August 15, 2009 11:14:14 PM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Since the scanner has the same problem in Twacker, then the problem lies in the Twain driver and you should contact your scanner manufacturer.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
LEADTOOLS Support
Imaging
Imaging SDK Questions
How to detect when scanner start to scan , time out happened?
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.