soukoku/ntwain

V3 OpenDS not working

tsukasa1989 opened this issue · 1 comments

We have 1 scanner, and when we use the Sample.Winform and run x64. After we select the scanner nothing happens, when we go and debug we get an exception in Datasource.cs at OpenDS, rc = Failure:

public ReturnCode Open()
        {
            var rc = ReturnCode.Failure;
            _session.MessageLoopHook.Invoke(() =>
            {
                PlatformInfo.Current.Log.Debug("Thread {0}: OpenSource.", Thread.CurrentThread.ManagedThreadId);

                rc = _session.DGControl.Identity.OpenDS(this);
                _session.UpdateCallback();
            });
            return rc;
        }

We have no idea on what to change or why it is a Failure. Please advise.

Maybe your Scanner does not support x64. You could retry it with x86.