Skip to content

'EndXfer' Affects speed #65

Description

@tianyaQQ

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);
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions