Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'EndXfer' Affects speed #65

Open
tianyaQQ opened this issue Oct 8, 2024 · 0 comments
Open

'EndXfer' Affects speed #65

tianyaQQ opened this issue Oct 8, 2024 · 0 comments

Comments

@tianyaQQ
Copy link

tianyaQQ commented Oct 8, 2024

session.DGControl.PendingXfers.EndXfer(pending);// 0.3 seconds slower

In the Win7、canon6030c, when the scanner parameter size is set to automatic detection, it is 0.3 seconds slower than setting a fixed size. As the number of scans increases, there is a significant delay in obtaining the last image. How can this be solved?
Computers with good Win10 performance have less noticeable latency.

static class TransferLogic
{
///


/// Performs the TWAIN transfer routine at state 6.
///

public static void DoTransferRoutine(ITwainSessionInternal session)
{
...
if (rc != ReturnCode.Success && session.StopOnTransferError)
{
// end xfer without setting rc to exit (good/bad?)
session.DGControl.PendingXfers.Reset(pending);
}
else
{
rc = session.DGControl.PendingXfers.EndXfer(pending);
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant