LEADTOOLS Support
Imaging
Imaging SDK Questions
Scanner do not return to the program from scanning stage when using TwainSession.Acquire
#1
Posted
:
Thursday, February 23, 2017 12:13:34 AM(UTC)
Groups: Registered
Posts: 4
Thanks: 1 times
Hi
I am using Kodak i920 with 32-bit twain driver. When I try to scan using the TwainSession.Acquire or TwainSession.FastAcquire, the scanner do not return from scanning state once it has complete scan through all the papers on the feeder. It will remain stuck there even I click cancel. Attached the screenshot.
I try to do the same testing from the sample source code that provided, example "TwainMultiPageDemo", I am facing the same problem, although I have set the TwainSession.StartUp to load the 32-bit driver.
However, when I direct run the CSTwainMultiPageDemo_Original.exe and do the scanning from there, it works fine.
I really need some advice on this.
Thanks!
Edited by user Friday, February 24, 2017 3:00:47 AM(UTC)
| Reason: Not specified
#2
Posted
:
Friday, February 24, 2017 4:07:54 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 39
Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
Hello GreyChow
The project you are testing that contains the sample source code, are you building this for x64 or x86? Do you have the 64bit version of the Kodak i920 drivers to test with?
From the information provided thus far we are not able to determine what is causing the UI to hang. Would you be able to share the project you are testing? Please remeber not to share any private licensing information here in the public forums, you can leave any license details out of your project.
Roberto Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, March 6, 2017 1:49:43 AM(UTC)
Groups: Registered
Posts: 4
Thanks: 1 times
Originally Posted by: Roberto Hello GreyChow
The project you are testing that contains the sample source code, are you building this for x64 or x86? Do you have the 64bit version of the Kodak i920 drivers to test with?
From the information provided thus far we are not able to determine what is causing the UI to hang. Would you be able to share the project you are testing? Please remeber not to share any private licensing information here in the public forums, you can leave any license details out of your project.
Hi
Roberto,
Sorry for late response, unfortunately, I not able to get the 64bit version of the scanner driver and the same problem occurs even using another scanner with 32-bit driver. I am building the project for x86, and added the 32-bit leadstool dll for project reference. Attached is the simple version of my program just to simulate the error, have remove the license info, I believe it is some project configuration that I miss out for the x86 environment.
Thanks in advance!
Best Regards,
Grey Chow
#4
Posted
:
Monday, March 6, 2017 4:43:44 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 39
Thanks: 2 times
Was thanked: 3 time(s) in 3 post(s)
GreyChow,
With the project that you build for x86, in the startup call for the twain session set the TwainStartupFlags to None.
Code:_twainSession.Startup(Me.Handle, "LEAD Technologies, Inc.", "LEAD Test Applications", "Version 1.0", "TWAIN Test Application", TwainStartupFlags.None)
Try that and if the same issue continues to happen we can go from there.
Roberto Rodriguez
Developer Support Engineer
LEAD Technologies, Inc.
1 user thanked Roberto for this useful post.
#5
Posted
:
Tuesday, March 7, 2017 8:31:45 PM(UTC)
Groups: Registered
Posts: 4
Thanks: 1 times
Originally Posted by: Roberto GreyChow,
With the project that you build for x86, in the startup call for the twain session set the TwainStartupFlags to None.
Code:_twainSession.Startup(Me.Handle, "LEAD Technologies, Inc.", "LEAD Test Applications", "Version 1.0", "TWAIN Test Application", TwainStartupFlags.None)
Try that and if the same issue continues to happen we can go from there.
Thanks Roberto! that's solve my problem! :D
LEADTOOLS Support
Imaging
Imaging SDK Questions
Scanner do not return to the program from scanning stage when using TwainSession.Acquire
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.