Quantcast
Channel: Saraff.Twain.NET
Viewing all articles
Browse latest Browse all 419

New Post: Problems using TWAINDSM.dll

$
0
0
Hello everyone! I have a problem with the Twaindsm.dll (Twain2).

First of all: sorry for the very long post :(

I have a x64 windows 10 machine, visual studio 2015 professional.

I am using Sample2.

I need Twain2 enabled to access ExtImageInfos.

TWAINDSM.dll files are both present on %windows%\system32 and \syswow64 dirs and are the correct versions (x86, x64).

_Platform.Load() returns a IntPtr.Zero :(

Can't use x64 code (for various reasons), so recompiled the library in x86 mode (AnyCPU may fail?).

_Platform.Load() returns a IntPtr.Zero :(

Have forced c:\windows\system32\twaindsm.dll to be sure (on OpenDSM).

_Platform.Load() returns a IntPtr.Zero :(

If I point to a copy of the twaindsm.dll (and TWAINDSM32.msm on the same dir) files copied elsewhere (also tried with a fresh new downloaded from the sourceforge page) the _Platform.Load() works.

Selected the DS from the dropdown menu, clicked the scan button but nothing happens.

Enabled driver UI, click scan on the Sample2 UI, click scan on the driver UI, opens scan progress but keep going forever.

Enabled TWAINDSM logging, got this:

[150804741 dsm.cpp 2368 0 000022B8] PaperStream IP fi-6130ZLAdj -> Saraff.Twain
[150804741 dsm.cpp 2377 0 000022B8] DG_CONTROL/DAT_NULL/MSG_XFERREADY
[150804741 dsm.cpp 2368 0 000022B8] DSM -> Saraff.Twain
[150804741 dsm.cpp 2377 0 000022B8] DG_CONTROL/DAT_NULL/MSG_XFERREADY
[150804741 dsm.cpp 2432 0 000022B8] TWRC_FAILURE
[150804741 dsm.cpp 2432 0 000022B8] TWRC_FAILURE

Tried setting _twain32.Twain2Enabled to false, everyting works (but not the ExtImageInfos I need, of course).

Debugged _twain32.Acquire():

Pass this.OpenDSM(), pass this.OpenDataSource(), pass this._EnableDataSource() but on the OS switch, it do nothing.

IsTwain2Supported is true.

_srcds is:
{PaperStream IP fi-6130ZLAdj}, Version = {1.30.110.5431 Mar 18 2016}
Id: 3
Manufacturer: "FUJITSU"
ProductFamily: "PaperStream IP"
ProductName: "PaperStream IP fi-6130ZLAdj"
ProtocolMajor: 2
ProtocolMinor: 2
SupportedGroups: Control | Image | DS2
Version: {1.30.110.5431 Mar 18 2016}
Application.MessageLoop is true.

The Twain 32bit sample app works good (of course only if I copy on the same directory twaindsm.dll and TWAINDSM32.msm files).

Any hint?

Viewing all articles
Browse latest Browse all 419

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>