twain / twain-cs

A C# interface for TWAIN
168 stars 67 forks source link

Many Scanners don't work with this library [sf#11] #15

Closed kolomiets closed 4 years ago

kolomiets commented 7 years ago

Reported by jhmgbl on 2015-08-26 17:46 UTC Scanning app crashes after scan with Twain Sample Scanner. My Scanners (Nikon Coolscan IV and Microsoft Webcam live) don't work with this library.

kolomiets commented 7 years ago

Updated by mlmcl on 2015-08-26 19:42 UTC

kolomiets commented 7 years ago

Commented by mlmcl on 2015-08-26 19:42 UTC I was going to ask you to turn on logging, but that's not working the way it's supposed to, so I'm going to refresh the code. Once that's done you'll be able to generate more information about the problem and we'll see what we can do about it...

kolomiets commented 7 years ago

Commented by mlmcl on 2015-08-27 13:38 UTC Okay, 2.3.1.1 is up. If you download and run it it will create two log files in the same folder as the binary (ex: TWAINCSScan.exe). One log file will be TWAINCSScan.log, the other will be twaindsm.log. If you send those along, we'll take a look and see what we can do to help.

kolomiets commented 7 years ago

Commented by jhmgbl on 2015-08-27 15:49 UTC Hello,

I have set m_blIndicators = true;

I get the following Errors:

and after scanning:

I will send you the log-file later.

Regeards Hans

-----Ursprungliche Nachricht----- Von: Mark [mailto:mlmcl@users.sf.net] Gesendet: Donnerstag, 27. August 2015 15:38 An: [twainforcsharp:tickets] Betreff: [twainforcsharp:tickets] #11 Many Scanners don't work with this library

Okay, 2.3.1.1 is up. If you download and run it it will create two log files in the same folder as the binary (ex: TWAINCSScan.exe). One log file will be TWAINCSScan.log, the other will be twaindsm.log. If you send those along, we'll take a look and see what we can do to help.


[tickets:#11] Many Scanners don't work with this library

Status: accepted Milestone: 1.0 Labels: Scanner Created: Wed Aug 26, 2015 05:46 PM UTC by Goebel Johannes-Martin Last Updated: Wed Aug 26, 2015 07:42 PM UTC Owner: nobody

Scanning app crashes after scan with Twain Sample Scanner. My Scanners (Nikon Coolscan IV and Microsoft Webcam live) don't work with this library.


Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/twainforcsharp/tickets/11/

To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

Attached file Outlook.bmp:

The file could not be attached: 'ascii' codec can't decode byte 0x86 in position 6: ordinal not in range(128)

Attached file alternate:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.17963"></HEAD>
<BODY>
<P><FONT size=2>Hello,<BR><BR>I have set m_blIndicators = true;<BR><BR>I get the 
following Errors:<BR><BR><IMG 
src="cid:903082715@27082015-17f2">&nbsp;&nbsp;&nbsp; </FONT></P>
<P><FONT size=2>and after scanning:</FONT></P>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial><IMG 
src="cid:903082715@27082015-17f9"></FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial>I will send you the log-file 
later.</FONT></FONT></DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial></FONT></FONT>&nbsp;</DIV>
<DIV><FONT size=2><FONT color=#0000ff face=Arial>Regeards Hans</FONT></DIV>
<P><BR><BR>-----Ursprungliche Nachricht-----<BR>Von: Mark [<A 
href="mailto:mlmcl@users.sf.net">mailto:mlmcl@users.sf.net</A>]<BR>Gesendet: 
Donnerstag, 27. August 2015 15:38<BR>An: [twainforcsharp:tickets]<BR>Betreff: 
[twainforcsharp:tickets] #11 Many Scanners don't work with 
this<BR>library<BR><BR><BR>Okay, 2.3.1.1 is up.&nbsp; If you download and run it 
it will create two log files in the same folder as the binary (ex: 
TWAINCSScan.exe).&nbsp; One log file will be TWAINCSScan.log, the other will be 
twaindsm.log.&nbsp; If you send those along, we'll take a look and see what we 
can do to help.<BR><BR><BR>---<BR><BR>** [tickets:#11] Many Scanners don't work 
with this library**<BR><BR>**Status:** accepted<BR>**Milestone:** 
1.0<BR>**Labels:** Scanner<BR>**Created:** Wed Aug 26, 2015 05:46 PM UTC by 
Goebel Johannes-Martin<BR>**Last Updated:** Wed Aug 26, 2015 07:42 PM 
UTC<BR>**Owner:** nobody<BR><BR><BR>Scanning app crashes after scan with Twain 
Sample Scanner. My Scanners (Nikon Coolscan IV and Microsoft Webcam live) don't 
work with this library.<BR><BR><BR>---<BR><BR>Sent from sourceforge.net because 
you indicated interest in &lt;<A 
href="https://sourceforge.net/p/twainforcsharp/tickets/11/" 
target=_blank>https://sourceforge.net/p/twainforcsharp/tickets/11/</A>&gt;<BR><BR><BR><BR>To 
unsubscribe from further messages, please visit &lt;<A 
href="https://sourceforge.net/auth/subscriptions/" 
target=_blank>https://sourceforge.net/auth/subscriptions/</A>&gt;</FONT> 
</P></BODY></HTML>
kolomiets commented 7 years ago

Commented by jhmgbl on 2015-08-29 14:13 UTC Here are the logfiles for NIKON SCAN: The application hangs after scanning. Attached file TWAINCSScan.log:

000000 154440053867   2015.08.29 15:44:40.053867
000001 154440054868   TWAINCSScan v1.37.0.28273

Attached file twaindsm.log:

[154440113 dsm.cpp   399     0 00000454] TWAIN Working Group

[154440113 dsm.cpp   400     0 00000454] TWAIN 32 Source Manager (Image Acquisition Interface)

[154440113 dsm.cpp   401     0 00000454] version: 2, 3, 0, 0

[154440113 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> DSM

[154440113 dsm.cpp  2377     0 00000454] DG_CONTROL/DAT_PARENT/MSG_OPENDSM

[154440113 apps.cpp  357     0 00000454]   Application: "TWAIN Working Group"

[154440113 apps.cpp  358     0 00000454]                "TWAIN Sharp"

[154440113 apps.cpp  359     0 00000454]                "TWAIN Sharp Scan App" version: 1.0

[154440113 apps.cpp  360     0 00000454]                TWAIN 2.3

[154440129 apps.cpp 1438   127 00000454]   We're deliberately skipping this file: C:\Windows\twain_32\wiatwain.ds

[154440129 apps.cpp  654   127 00000454]   Condition Code: DS or DSM reported error, application shouldn't display an error

[154440138 apps.cpp 1462     0 00000454]   Loaded library: C:\Windows\twain_32\Nikon\Nikon Scan 4.0\NikonScan4.ds

[154440160 apps.cpp 1462     0 00000454]   Loaded library: C:\Windows\twain_32\STK1160\StkCTW.ds

[154440165 apps.cpp 1462   126 00000454]   Loaded library: C:\Windows\twain_32\VX3000\VX3000.ds

[154440166 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154441926 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154441926 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST

[154441926 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154441930 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154441930 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[154441930 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154441932 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154441932 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[154441932 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154441933 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154441933 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[154441933 dsm.cpp  2432    18 00000454] TWRC_ENDOFLIST

[154441937 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154441937 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT

[154441937 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154444334 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154444335 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_SET

[154444335 dsm.cpp  2432    18 00000454] TWRC_SUCCESS

[154444336 dsm.cpp  2368    18 00000454] TWAIN Sharp Scan App -> DSM

[154444336 dsm.cpp  2377    18 00000454] DG_CONTROL/DAT_IDENTITY/MSG_OPENDS

[154444336 apps.cpp 1387    18 00000454]   Datasource: "Nikon Inc."

[154444336 apps.cpp 1388    18 00000454]               "Electronic Imaging"

[154444336 apps.cpp 1389    18 00000454]               "Nikon Scan 4.0" version: 4.0

[154444336 apps.cpp 1390    18 00000454]               TWAIN 1.9

[154444345 apps.cpp 1462     0 00000454]   Loaded library: C:\Windows\twain_32\Nikon\Nikon Scan 4.0\NikonScan4.ds

[154446383 dsm.cpp  2432     0 00000454] TWRC_SUCCESS

[154446385 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154446385 dsm.cpp  2377     0 00000454] DG_CONTROL/DAT_CALLBACK/MSG_REGISTER_CALLBACK

[154446385 dsm.cpp  2432     0 00000454] TWRC_SUCCESS

[154455958 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154455958 dsm.cpp  2373     0 00000454] DG_CONTROL/DAT_CAPABILITY/MSG_SET/ICAP_XFERMECH TWON_ONEVALUE 

[154455958 dsm.cpp  2432     0 00000454] TWRC_SUCCESS

[154455960 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154455960 dsm.cpp  2373     0 00000454] DG_CONTROL/DAT_CAPABILITY/MSG_SET/CAP_INDICATORS TWON_ONEVALUE 

[154455960 dsm.cpp  2432     0 00000454] TWRC_FAILURE

[154455961 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154455961 dsm.cpp  2377     0 00000454] DG_CONTROL/DAT_STATUS/MSG_GET

[154455961 dsm.cpp  2432     0 00000454] TWRC_SUCCESS TWCC_BADCAP

[154509698 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154509698 dsm.cpp  2373     0 00000454] DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT/CAP_CUSTOMDSDATA

[154509698 dsm.cpp  2432     0 00000454] TWRC_FAILURE

[154509698 dsm.cpp  2368     0 00000454] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154509698 dsm.cpp  2377     0 00000454] DG_CONTROL/DAT_STATUS/MSG_GET

[154509698 dsm.cpp  2432     0 00000454] TWRC_SUCCESS TWCC_BADCAP

[154517242 dsm.cpp  2368     0 00002014] TWAIN Sharp Scan App -> Nikon Scan 4.0

[154517242 dsm.cpp  2377     0 00002014] DG_CONTROL/DAT_USERINTERFACE/MSG_ENABLEDS
kolomiets commented 7 years ago

Commented by jhmgbl on 2015-08-29 14:41 UTC And here are the logfiles for Microsoft Live Cam: The application crashes after closing the Scan-Form. Attached file TWAINCSScan.log:

000000 154440053867   2015.08.29 15:44:40.053867
000001 154440054868   TWAINCSScan v1.37.0.28273
000000 163910160277   2015.08.29 16:39:10.160277
000001 163910186278   TWAINCSScan v1.37.0.28273
000002 163910201279   
000003 163910201279   twn> DG_CONTROL/DAT_PARENT/MSG_OPENDSM
000004 163910218279   twn> SUCCESS
000005 163912265394   
000006 163912266394   twn> DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST
000007 163912269394   twn> 1,4,0,ENGLISH_USA,USA,4.0,1,9,0x3,Nikon Inc.,Electronic Imaging,Nikon Scan 4.0
000008 163912269394   twn> SUCCESS
000009 163912270394   
000010 163912270394   twn> DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT
000011 163912271394   twn> 2,1,603,ENGLISH_USA,USA,Version 1.0.0.2  11/15/2004,1,6,0x3,Syntek America Inc.,TWAIN Data Source,DC-112X TWAIN Image Capture
000012 163912271394   twn> SUCCESS
000013 163912271394   
000014 163912271394   twn> DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT
000015 163912272395   twn> 3,1,0,ENGLISH_USA,USA,"JULY, 2003",1,7,0x3,SONIX,TWAIN  ,Microsoft LifeCam VX-3000
000016 163912272395   twn> SUCCESS
000017 163912272395   
000018 163912273395   twn> DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT
000019 163912273395   twn> 0,0,0,DAN,0,,0,0,0x0,,,
000020 163912273395   twn> ENDOFLIST
000021 163912274394   
000022 163912274394   twn> DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT
000023 163912274394   twn> 1,4,0,ENGLISH_USA,USA,4.0,1,9,0x3,Nikon Inc.,Electronic Imaging,Nikon Scan 4.0
000024 163912275395   twn> SUCCESS
000025 163914777535   
000026 163914777535   twn> DG_CONTROL/DAT_IDENTITY/MSG_SET
000027 163914778535   twn> 3,1,0,ENGLISH_USA,USA,"JULY, 2003",1,7,0x3,SONIX,TWAIN  ,Microsoft LifeCam VX-3000
000028 163914778535   twn> SUCCESS
000029 163914779535   
000030 163914779535   twn> DG_CONTROL/DAT_IDENTITY/MSG_OPENDS
000031 163914779535   twn> 3,1,0,ENGLISH_USA,USA,"JULY, 2003",1,7,0x3,SONIX,TWAIN  ,Microsoft LifeCam VX-3000
000032 163914804536   twn> 3,1,0,ENGLISH_USA,USA,"JULY, 2003",1,7,0x3,SONIX,TWAIN  ,Microsoft LifeCam VX-3000
000033 163914804536   twn> SUCCESS
000034 163914805537   
000035 163914805537   twn> DG_CONTROL/DAT_CALLBACK/MSG_OPENDS
000036 163914806536   twn> 79649590,0,0
000037 163914806536   twn> SUCCESS
000038 163914817537   
000039 163914817537   twn> DG_CONTROL/DAT_CAPABILITY/MSG_SET
000040 163914817537   twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_UINT16,2
000041 163914847538   twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_UINT16,2
000042 163914848539   twn> SUCCESS
000043 163914848539   
000044 163914849539   twn> DG_CONTROL/DAT_CAPABILITY/MSG_SET
000045 163914849539   twn> CAP_INDICATORS,TWON_ONEVALUE,TWTY_UINT16,1
000046 163914850539   twn> CAP_INDICATORS,TWON_ONEVALUE,TWTY_UINT16,1
000047 163914851539   twn> FAILURE
000048 163916897654   
000049 163916897654   twn> DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT
000050 163916898654   twn> FAILURE
000051 163929619367   
000052 163929619367   twn> DG_CONTROL/DAT_USERINTERFACE/MSG_ENABLEDS
000053 163929620366   twn> 1,0
000054 163929902383   twn> SUCCESS
000055 163958819003   
000056 163958820003   twn> DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT
000057 163958821003   twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_12432,Get Capability: (unrecognized item type)...12432
000058 163958822003   twn> SUCCESS
000059 163958859005   
000060 163958859005   twn> DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET
000061 163958908007   twn> XFERDONE
000062 163958913008   
000063 163958913008   twn> DG_IMAGE/DAT_IMAGEINFO/MSG_GET
000064 163958915008   twn> 100,100,320,240,3,8,8,8,8,0,0,0,0,0,TWPT_RGB,TWCP_NONE
000065 163958915008   twn> SUCCESS
000066 163958917008   
000067 163958918008   twn> DG_IMAGE/DAT_EXTIMAGEINFO/MSG_GET
000068 163958918008   twn> FAILURE
000069 163958919008   
000070 163958920008   twn> DG_CONTROL/DAT_PENDINGXFERS/MSG_ENDXFER
V:\Bilder\2015\Copy 0 of 2015_07_27_2015_07_28Besuch Andreas Kaja Juna\New_ScannedImage000.jpg
000071 163958924009   twn> 0,0
000072 163958925009   twn> SUCCESS
5026291712
000073 163958927009   
000074 163958928009   twn> DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT
000075 163958929009   twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_12432,Get Capability: (unrecognized item type)...12432
000076 163958930009   twn> SUCCESS
000077 164002566212   
000078 164002567212   twn> D

Attached file twaindsm.log:

[163910203 dsm.cpp   399   183 00001240] TWAIN Working Group

[163910203 dsm.cpp   400   183 00001240] TWAIN 32 Source Manager (Image Acquisition Interface)

[163910203 dsm.cpp   401   183 00001240] version: 2, 3, 0, 0

[163910203 dsm.cpp  2368   183 00001240] TWAIN Sharp Scan App -> DSM

[163910203 dsm.cpp  2377   183 00001240] DG_CONTROL/DAT_PARENT/MSG_OPENDSM

[163910203 apps.cpp  357   183 00001240]   Application: "TWAIN Working Group"

[163910203 apps.cpp  358   183 00001240]                "TWAIN Sharp"

[163910203 apps.cpp  359   183 00001240]                "TWAIN Sharp Scan App" version: 1.0

[163910203 apps.cpp  360   183 00001240]                TWAIN 2.3

[163910203 apps.cpp 1438   127 00001240]   We're deliberately skipping this file: C:\Windows\twain_32\wiatwain.ds

[163910203 apps.cpp  654   127 00001240]   Condition Code: DS or DSM reported error, application shouldn't display an error

[163910213 apps.cpp 1462     0 00001240]   Loaded library: C:\Windows\twain_32\Nikon\Nikon Scan 4.0\NikonScan4.ds

[163910215 apps.cpp 1462     0 00001240]   Loaded library: C:\Windows\twain_32\STK1160\StkCTW.ds

[163910217 apps.cpp 1462   126 00001240]   Loaded library: C:\Windows\twain_32\VX3000\VX3000.ds

[163910218 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163912266 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163912266 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST

[163912266 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163912270 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163912271 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[163912271 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163912272 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163912272 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[163912272 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163912273 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163912273 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[163912273 dsm.cpp  2432    18 00001240] TWRC_ENDOFLIST

[163912274 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163912274 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT

[163912274 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163914778 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163914778 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_SET

[163914778 dsm.cpp  2432    18 00001240] TWRC_SUCCESS

[163914779 dsm.cpp  2368    18 00001240] TWAIN Sharp Scan App -> DSM

[163914779 dsm.cpp  2377    18 00001240] DG_CONTROL/DAT_IDENTITY/MSG_OPENDS

[163914780 apps.cpp 1387    18 00001240]   Datasource: "SONIX"

[163914780 apps.cpp 1388    18 00001240]               "TWAIN  "

[163914780 apps.cpp 1389    18 00001240]               "Microsoft LifeCam VX-3000" version: 1.0

[163914780 apps.cpp 1390    18 00001240]               TWAIN 1.7

[163914781 apps.cpp 1462   126 00001240]   Loaded library: C:\Windows\twain_32\VX3000\VX3000.ds

[163914804 dsm.cpp  2432     0 00001240] TWRC_SUCCESS

[163914806 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163914806 dsm.cpp  2377     0 00001240] DG_CONTROL/DAT_CALLBACK/MSG_REGISTER_CALLBACK

[163914806 dsm.cpp  2432     0 00001240] TWRC_SUCCESS

[163914818 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163914818 dsm.cpp  2373     0 00001240] DG_CONTROL/DAT_CAPABILITY/MSG_SET/ICAP_XFERMECH TWON_ONEVALUE 

[163914847 dsm.cpp  2432     0 00001240] TWRC_SUCCESS

[163914849 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163914849 dsm.cpp  2373     0 00001240] DG_CONTROL/DAT_CAPABILITY/MSG_SET/CAP_INDICATORS TWON_ONEVALUE 

[163914850 dsm.cpp  2432     2 00001240] TWRC_FAILURE

[163914851 dsm.cpp  2368     2 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163914851 dsm.cpp  2377     2 00001240] DG_CONTROL/DAT_STATUS/MSG_GET

[163914851 dsm.cpp  2432     2 00001240] TWRC_SUCCESS TWCC_BADVALUE

[163916897 dsm.cpp  2368     2 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163916897 dsm.cpp  2373     2 00001240] DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT/CAP_CUSTOMDSDATA

[163916898 dsm.cpp  2432     2 00001240] TWRC_FAILURE

[163916898 dsm.cpp  2368     2 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163916898 dsm.cpp  2377     2 00001240] DG_CONTROL/DAT_STATUS/MSG_GET

[163916898 dsm.cpp  2432     2 00001240] TWRC_SUCCESS TWCC_BADCAP

[163929620 dsm.cpp  2368   127 00001A68] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163929620 dsm.cpp  2377   127 00001A68] DG_CONTROL/DAT_USERINTERFACE/MSG_ENABLEDS

[163929902 dsm.cpp  2432  1400 00001A68] TWRC_SUCCESS

[163958802 dsm.cpp  2368     0 00001A68] Microsoft LifeCam VX-3000 -> TWAIN Sharp Scan App

[163958802 dsm.cpp  2377     0 00001A68] DG_CONTROL/DAT_NULL/MSG_XFERREADY

[163958802 dsm.cpp  2368     0 00001A68]   DSM -> TWAIN Sharp Scan App

[163958802 dsm.cpp  2377     0 00001A68]   DG_CONTROL/DAT_NULL/MSG_XFERREADY

[163958802 dsm.cpp  2432     0 00001A68]   TWRC_SUCCESS

[163958802 dsm.cpp  2432     0 00001A68] TWRC_SUCCESS

[163958820 dsm.cpp  2368     2 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958820 dsm.cpp  2373     2 00001240] DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT/ICAP_XFERMECH

[163958821 dsm.cpp  2432     0 00001240] TWRC_SUCCESS TWON_ONEVALUE 

[163958860 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958860 dsm.cpp  2377     0 00001240] DG_IMAGE/DAT_IMAGENATIVEXFER/MSG_GET

[163958908 dsm.cpp  2432     0 00001240] TWRC_XFERDONE

[163958914 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958914 dsm.cpp  2377     0 00001240] DG_IMAGE/DAT_IMAGEINFO/MSG_GET

[163958914 dsm.cpp  2432     0 00001240] TWRC_SUCCESS

[163958918 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958918 dsm.cpp  2377     0 00001240] DG_IMAGE/DAT_EXTIMAGEINFO/MSG_GET

[163958918 dsm.cpp  2432     0 00001240] TWRC_FAILURE

[163958918 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958919 dsm.cpp  2377     0 00001240] DG_CONTROL/DAT_STATUS/MSG_GET

[163958919 dsm.cpp  2432     0 00001240] TWRC_SUCCESS TWCC_BADPROTOCOL

[163958920 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958920 dsm.cpp  2377     0 00001240] DG_CONTROL/DAT_PENDINGXFERS/MSG_ENDXFER

[163958924 dsm.cpp  2432     0 00001240] TWRC_SUCCESS Count = 0

[163958928 dsm.cpp  2368     0 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[163958928 dsm.cpp  2373     0 00001240] DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT/ICAP_XFERMECH

[163958929 dsm.cpp  2432     0 00001240] TWRC_SUCCESS TWON_ONEVALUE 

[164002566 dsm.cpp  2368     0 00001A68] Microsoft LifeCam VX-3000 -> TWAIN Sharp Scan App

[164002566 dsm.cpp  2377     0 00001A68] DG_CONTROL/DAT_NULL/MSG_CLOSEDSREQ

[164002566 dsm.cpp  2368     0 00001A68]   DSM -> TWAIN Sharp Scan App

[164002566 dsm.cpp  2377     0 00001A68]   DG_CONTROL/DAT_NULL/MSG_CLOSEDSREQ

[164002566 dsm.cpp  2432     0 00001A68]   TWRC_SUCCESS

[164002566 dsm.cpp  2432     0 00001A68] TWRC_SUCCESS

[164002568 dsm.cpp  2368  1400 00001240] TWAIN Sharp Scan App -> Microsoft LifeCam VX-3000

[164002568 dsm.cpp  2377  1400 00001240] DG_CONTROL/DAT_USERINTERFACE/MSG_DISABLEDS

[164016622 dsm.cpp  1430     0 00001240]   The DSM was left in an open state when it was unloaded!
kolomiets commented 7 years ago

Commented by mlmcl on 2015-10-17 17:14 UTC I got my hands on a scanner that wasn't working, and I've addressed most of the issues. I still need to apply the fix to the native, file and memfile transfers, then I'll check it all in and do an update. Hopefully, that'll be done this weekend...

kolomiets commented 7 years ago

Updated by mlmcl on 2015-10-18 00:42 UTC

kolomiets commented 7 years ago

Updated by mlmcl on 2015-10-18 09:27 UTC

kolomiets commented 7 years ago

Commented by mlmcl on 2015-10-18 09:27 UTC Okay, the changes made should make a difference for a lot of scanners. I'm putting this ticket into a pending state. If there continue to be problems, please let me know...

kolomiets commented 7 years ago

Commented by d-fens_ on 2016-01-04 14:45 UTC HI, have problem with Epson v750 pro: "Error when communicating with scanner" dialog pops up when i try to dsopen and scan , although the GUI is showing afterwards. Attached file TWAINCSScan.log:

000000 153703186014 S0 T00000009 V. ts:2016.01.04 15:37:03.186014 os:windows
000001 153703186014 S0 T00000009 V. TWAINCSScan v2.3.2.0
000002 153703196014 S0 T00000010 V. main>>> thread started...
000003 153703206014 S0 T00000010 V. 
000004 153703206014 S0 T00000010 V. twn> DG_CONTROL/DAT_PARENT/MSG_OPENDSM
000005 153703386016 S0 T00000010 V. twn> SUCCESS
000006 153704665033 S3 T00000010 V. 
000007 153704687035 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST
000008 153704692035 S3 T00000010 V. twn> 1,3,11,GER,GERMANY,"Version 3.4  Oct, 2005",1,6,0x3,"Brother Industries, Ltd.",Brother MFL-Pro Scanner,TW-Brother MFC-J6710DW LAN
000009 153704692035 S3 T00000010 V. twn> SUCCESS
000010 153704693035 S3 T00000010 V. 
000011 153704693035 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT
000012 153704693035 S3 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000013 153704693035 S3 T00000010 V. twn> SUCCESS
000014 153704694035 S3 T00000010 V. 
000015 153704694035 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT
000016 153704694035 S3 T00000010 V. twn> 0,0,0,DAN,0,,0,0,0x0,,,
000017 153704694035 S3 T00000010 V. twn> ENDOFLIST
000018 153704695035 S3 T00000010 V. 
000019 153704695035 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT
000020 153704695035 S3 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000021 153704696035 S3 T00000010 V. twn> SUCCESS
000022 153705782043 S3 T00000010 V. 
000023 153705782043 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_SET
000024 153705782043 S3 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000025 153705782043 S3 T00000010 V. twn> SUCCESS
000026 153705796043 S3 T00000010 V. 
000027 153705796043 S3 T00000010 V. twn> DG_CONTROL/DAT_ENTRYPOINT/MSG_GET
000028 153705797043 S3 T00000010 V. twn> 24,0x0,0x0,0x0,0x0,0x0
000029 153705798044 S3 T00000010 V. twn> 24,0x5203720,0x52098E0,0x5209970,0x52099C0,0x5209A10
000030 153705798044 S3 T00000010 V. twn> SUCCESS
000031 153705798044 S3 T00000010 V. 
000032 153705798044 S3 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_OPENDS
000033 153705799044 S3 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000034 153706100049 S3 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000035 153706101049 S3 T00000010 V. twn> SUCCESS
000036 153706102049 S4 T00000010 V. 
000037 153706102049 S4 T00000010 V. twn> DG_CONTROL/DAT_CALLBACK/MSG_OPENDS
000038 153706103049 S4 T00000010 V. twn> 8865074,0,0
000039 153706103049 S4 T00000010 V. twn> SUCCESS
000040 153706119050 S4 T00000010 V. 
000041 153706120050 S4 T00000010 V. twn> DG_CONTROL/DAT_CAPABILITY/MSG_SET
000042 153706120050 S4 T00000010 V. twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_UINT16,2
000043 153706121050 S4 T00000010 V. twn> ICAP_XFERMECH,TWON_ONEVALUE,TWTY_UINT16,2
000044 153706121050 S4 T00000010 V. twn> SUCCESS
000045 153706124050 S4 T00000010 V. 
000046 153706125051 S4 T00000010 V. twn> DG_CONTROL/DAT_CAPABILITY/MSG_SET
000047 153706125051 S4 T00000010 V. twn> CAP_INDICATORS,TWON_ONEVALUE,TWTY_BOOL,0
000048 153706125051 S4 T00000010 V. twn> CAP_INDICATORS,TWON_ONEVALUE,TWTY_BOOL,0
000049 153706125051 S4 T00000010 V. twn> SUCCESS
000050 153706229054 S4 T00000010 V. 
000051 153706230054 S4 T00000010 V. twn> DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT
000052 153706232054 S4 T00000010 V. twn> CAP_CUSTOMDSDATA,0,0
000053 153706232054 S4 T00000010 V. twn> FAILURE
000054 153709842095 S4 T00000009 V. 
000055 153709852095 S4 T00000009 V. twn> DG_CONTROL/DAT_USERINTERFACE/MSG_ENABLEDS
000056 153709852095 S4 T00000009 V. twn> 1,0
000057 153711450106 S4 T00000009 V. twn> SUCCESS
000058 153721000175 S5 T00000010 V. 
000059 153721010175 S5 T00000010 V. twn> DG_CONTROL/DAT_USERINTERFACE/MSG_DISABLEDS
000060 153721010175 S5 T00000010 V. twn> 1,0
000061 153721100176 S5 T00000010 V. twn> SUCCESS
000062 153724454183 S4 T00000010 V. 
000063 153724454183 S4 T00000010 V. twn> DG_CONTROL/DAT_IDENTITY/MSG_CLOSEDS
000064 153724464183 S4 T00000010 V. twn> 2,3,83,ENGLISH_USA,USA,3.83,1,8,0x3,EPSON,EPSON Flatbed Scanner,EPSON Perfection V700/V750
000065 153724464183 S4 T00000010 V. twn> SUCCESS
000066 153724464183 S3 T00000010 V. 
000067 153724464183 S3 T00000010 V. twn> DG_CONTROL/DAT_PARENT/MSG_CLOSEDSM
000068 153724464183 S3 T00000010 V. twn> SUCCESS

Attached file twaindsm.log:

[153703206 dsm.cpp   399     0 000020BC] TWAIN Working Group

[153703206 dsm.cpp   400     0 000020BC] TWAIN 32 Source Manager (Image Acquisition Interface)

[153703206 dsm.cpp   401     0 000020BC] version: 2, 3, 0, 0

[153703206 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> DSM

[153703206 dsm.cpp  2377     0 000020BC] DG_CONTROL/DAT_PARENT/MSG_OPENDSM

[153703206 apps.cpp  357     0 000020BC]   Application: "TWAIN Working Group"

[153703206 apps.cpp  358     0 000020BC]                "TWAIN Sharp"

[153703206 apps.cpp  359     0 000020BC]                "TWAIN Sharp Scan App" version: 1.0

[153703206 apps.cpp  360     0 000020BC]                TWAIN 2.3

[153703206 apps.cpp 1438   127 000020BC]   We're deliberately skipping this file: C:\Windows\twain_32\wiatwain.ds

[153703206 apps.cpp  654   127 000020BC]   Condition Code: DS or DSM reported error, application shouldn't display an error

[153703206 apps.cpp 1462     0 000020BC]   Loaded library: C:\Windows\twain_32\BrSc09d\MFJ6710DWN1\BrTwdFe.ds

[153703368 apps.cpp 1462     0 000020BC]   Loaded library: C:\Windows\twain_32\escndv\perv700.ds

[153703386 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153704688 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153704688 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_GETFIRST

[153704688 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153704693 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153704693 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[153704693 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153704694 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153704694 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_GETNEXT

[153704694 dsm.cpp  2432    18 000020BC] TWRC_ENDOFLIST

[153704695 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153704695 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT

[153704695 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153705782 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153705782 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_SET

[153705782 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153705797 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> 

[153705797 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_ENTRYPOINT/MSG_GET

[153705797 dsm.cpp  2432    18 000020BC] TWRC_SUCCESS

[153705799 dsm.cpp  2368    18 000020BC] TWAIN Sharp Scan App -> DSM

[153705799 dsm.cpp  2377    18 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_OPENDS

[153705799 apps.cpp 1387    18 000020BC]   Datasource: "EPSON"

[153705799 apps.cpp 1388    18 000020BC]               "EPSON Flatbed Scanner"

[153705799 apps.cpp 1389    18 000020BC]               "EPSON Perfection V700/V750" version: 3.83

[153705799 apps.cpp 1390    18 000020BC]               TWAIN 1.8

[153705799 apps.cpp 1462     0 000020BC]   Loaded library: C:\Windows\twain_32\escndv\perv700.ds

[153706100 dsm.cpp  2432     0 000020BC] TWRC_SUCCESS

[153706103 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153706103 dsm.cpp  2377     0 000020BC] DG_CONTROL/DAT_CALLBACK/MSG_REGISTER_CALLBACK

[153706103 dsm.cpp  2432     0 000020BC] TWRC_SUCCESS

[153706121 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153706121 dsm.cpp  2373     0 000020BC] DG_CONTROL/DAT_CAPABILITY/MSG_SET/ICAP_XFERMECH TWON_ONEVALUE 

[153706121 dsm.cpp  2432     0 000020BC] TWRC_SUCCESS

[153706125 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153706125 dsm.cpp  2373     0 000020BC] DG_CONTROL/DAT_CAPABILITY/MSG_SET/CAP_INDICATORS TWON_ONEVALUE 

[153706125 dsm.cpp  2432     0 000020BC] TWRC_SUCCESS

[153706232 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153706232 dsm.cpp  2373     0 000020BC] DG_CONTROL/DAT_CAPABILITY/MSG_GETCURRENT/CAP_CUSTOMDSDATA

[153706232 dsm.cpp  2432     0 000020BC] TWRC_FAILURE

[153706239 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153706239 dsm.cpp  2377     0 000020BC] DG_CONTROL/DAT_STATUS/MSG_GET

[153706239 dsm.cpp  2432     0 000020BC] TWRC_SUCCESS TWCC_BADCAP

[153709852 dsm.cpp  2368     0 0000216C] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153709852 dsm.cpp  2377     0 0000216C] DG_CONTROL/DAT_USERINTERFACE/MSG_ENABLEDS

[153711450 dsm.cpp  2432     0 0000216C] TWRC_SUCCESS

[153713898 dsm.cpp  2368     0 0000216C] EPSON Perfection V700/V750 -> TWAIN Sharp Scan App

[153713898 dsm.cpp  2377     0 0000216C] DG_CONTROL/DAT_NULL/MSG_CLOSEDSREQ

[153713898 dsm.cpp  2368     0 0000216C]   DSM -> TWAIN Sharp Scan App

[153713898 dsm.cpp  2377     0 0000216C]   DG_CONTROL/DAT_NULL/MSG_CLOSEDSREQ

[153713898 dsm.cpp  2432     0 0000216C]   TWRC_SUCCESS

[153713898 dsm.cpp  2432     0 0000216C] TWRC_SUCCESS

[153721020 dsm.cpp  2368     0 0000216C] TWAIN Sharp Scan App -> EPSON Perfection V700/V750

[153721020 dsm.cpp  2377     0 0000216C] DG_CONTROL/DAT_USERINTERFACE/MSG_DISABLEDS

[153721100 dsm.cpp  2432     0 0000216C] TWRC_SUCCESS

[153724454 dsm.cpp  2368     0 000020BC] TWAIN Sharp Scan App -> DSM

[153724454 dsm.cpp  2377     0 000020BC] DG_CONTROL/DAT_IDENTITY/MSG_CLOSEDS

[153724464 dsm.cpp  2432   145 000020BC] TWRC_SUCCESS

[153724464 dsm.cpp  2368   145 000020BC] TWAIN Sharp Scan App -> DSM

[153724464 dsm.cpp  2377   145 000020BC] DG_CONTROL/DAT_PARENT/MSG_CLOSEDSM

[153724464 dsm.cpp  2432   145 000020BC] TWRC_SUCCESS
kolomiets commented 7 years ago

Commented by d-fens_ on 2016-03-21 10:48 UTC @Mark:

Is there anything that can eb further debugged? It would really be great if this issue could be resolved!

kolomiets commented 7 years ago

Commented by jhmgbl on 2016-03-21 21:00 UTC Hallo! Microsoft Live Cam is working now. Nikon Coolscan still crashes and if I embed the application in my vb.net app the library crashes on rollback state with Twain Sample Source.

Regards Hans

JohnNyongesa2 commented 7 years ago

Hi, where are the modified files, having similar issue with hp and canon

mlmcl62 commented 4 years ago

closing this, the rewrite removing the toolkit took care of a lot of problems...