soukoku / ntwain

A TWAIN lib for dotnet.
MIT License
119 stars 49 forks source link

V3 OpenDS not working #6

Open tsukasa1989 opened 5 years ago

tsukasa1989 commented 5 years ago

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.

F1schk0pp commented 4 years ago

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