Author |
Topic  |
|
Craigism
USA
2 Posts |
Posted - Sep 14 2018 : 15:05:55
|
Hello,
Brother ADS-2700W (at a client's site)
In my app the scan (Acquire) function seems to do nothing with the twain scan button. As a debugging test, I tried AllAquire and got the same result. I added the log file to my version of AllAquire and posted the results here below.
I tested the twain driver with the scanner's included paperport software and it works 100%. I also tested the Preview button on the twain screen in AllAquire and it works. I have to use Delphi 2007 (with ImageEn 5.x) for this project.
Thanks, Craig
AllAquire code with log file line added: procedure TfrmMain.btnAcquireClick(Sender: TObject); begin ImageEnMView1.MIO.TwainParams.LogFile := 'ietwainlog.txt';
if ImageEnMView1.MIO.AcquireParams.SelectedSource.API = ieaNone then begin messagedlg('You have not specified an acquisition source', mtInformation, [mbOK], 0); exit; end;
SaveProperties; ImageEnMView1.MIO.Acquire; // nothing seems to happen in twain scan! ProgressBar1.Position := 0; end;
attach/Craigism/2018914145953_ietwainlog.txt
[SNIP] of the attached log file: Twain log. Core version 5.0.0 21 9 2013 9/14/2018 2:47:50 PM : IETW_Acquire 9/14/2018 2:47:50 PM : CreateProxyWindow 9/14/2018 2:47:50 PM : CreateProxyWindow : already created 9/14/2018 2:47:50 PM : IETW_LoadSourceManager 9/14/2018 2:47:50 PM : IETW_LoadSourceManager : already loaded 9/14/2018 2:47:50 PM : IETW_OpenSourceManager 9/14/2018 2:47:50 PM : IETW_OpenSourceManager : Ok 9/14/2018 2:47:50 PM : IETW_OpenSource 9/14/2018 2:47:50 PM : IETW_OpenSource : Ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_PIXELTYPE 9/14/2018 2:47:50 PM : GetCapability : $0101 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetIntegerAsUINT16Capability 9/14/2018 2:47:50 PM : SetIntegerAsUINT16Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_UNITS 9/14/2018 2:47:50 PM : GetCapability : $0102 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : GetUINT16asInteger 9/14/2018 2:47:50 PM : GetUINT16asInteger : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_FILTER 9/14/2018 2:47:50 PM : GetCapability : $1106 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneUINT16Capability 9/14/2018 2:47:50 PM : SetOneUINT16Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_ROTATION 9/14/2018 2:47:50 PM : GetCapability : $1121 9/14/2018 2:47:50 PM : IETW_DS : General failure. Unload Source immediately. 9/14/2018 2:47:50 PM : GetCapability : FAILED! 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_PIXELFLAVOR 9/14/2018 2:47:50 PM : GetCapability : $111F 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneUINT16Capability 9/14/2018 2:47:50 PM : SetOneUINT16Capability : ok 9/14/2018 2:47:50 PM : GetCapability : $111F 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : GetUINT16asInteger 9/14/2018 2:47:50 PM : GetUINT16asInteger : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_COMPRESSION 9/14/2018 2:47:50 PM : GetCapability : $0100 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneUINT16Capability 9/14/2018 2:47:50 PM : SetOneUINT16Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_XRESOLUTION 9/14/2018 2:47:50 PM : GetCapability : $1118 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetDoubleAsFIX32Capability 9/14/2018 2:47:50 PM : SetDoubleAsFIX32Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_YRESOLUTION 9/14/2018 2:47:50 PM : GetCapability : $1119 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetDoubleAsFIX32Capability 9/14/2018 2:47:50 PM : SetDoubleAsFIX32Capability : ok 9/14/2018 2:47:50 PM : GetCapability : $1120 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : GetUINT16asInteger 9/14/2018 2:47:50 PM : GetUINT16asInteger : ok 9/14/2018 2:47:50 PM : GetCapability : $0103 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : GetUINT16asInteger 9/14/2018 2:47:50 PM : GetUINT16asInteger : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : TWSX_MEMORY - ICAP_XFERMECH 9/14/2018 2:47:50 PM : GetCapability : $0103 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneUINT16Capability 9/14/2018 2:47:50 PM : SetOneUINT16Capability : ok 9/14/2018 2:47:50 PM : GetCapability : $0103 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : GetUINT16asInteger 9/14/2018 2:47:50 PM : GetUINT16asInteger : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : CAP_FEEDERENABLED 9/14/2018 2:47:50 PM : GetCapability : $1002 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOnBoolCapability 9/14/2018 2:47:50 PM : IETW_DS : General failure. Unload Source immediately. 9/14/2018 2:47:50 PM : SetOnBoolCapability : FAILED! 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_AUTODISCARDBLANKPAGES 9/14/2018 2:47:50 PM : GetCapability : $1134 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneINT32Capability 9/14/2018 2:47:50 PM : SetOneUINT16Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : CAP_AUTOSCAN 9/14/2018 2:47:50 PM : GetCapability : $1010 9/14/2018 2:47:50 PM : IETW_DS : General failure. Unload Source immediately. 9/14/2018 2:47:50 PM : GetCapability : FAILED! 9/14/2018 2:47:50 PM : IETW_SetCapabilities : CAP_XFERCOUNT 9/14/2018 2:47:50 PM : GetCapability : $0001 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOneINT16Capability 9/14/2018 2:47:50 PM : SetOneINT16Capability : ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : ICAP_ORIENTATION 9/14/2018 2:47:50 PM : GetCapability : $1110 9/14/2018 2:47:50 PM : IETW_DS : General failure. Unload Source immediately. 9/14/2018 2:47:50 PM : GetCapability : FAILED! 9/14/2018 2:47:50 PM : IETW_SetCapabilities : CAP_INDICATORS 9/14/2018 2:47:50 PM : GetCapability : $100B 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOnBoolCapability 9/14/2018 2:47:50 PM : SetOnBoolCapability : Ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : CAP_DUPLEXENABLED 9/14/2018 2:47:50 PM : GetCapability : $1013 9/14/2018 2:47:50 PM : GetCapability : Ok 9/14/2018 2:47:50 PM : SetOnBoolCapability 9/14/2018 2:47:50 PM : SetOnBoolCapability : Ok 9/14/2018 2:47:50 PM : IETW_SetCapabilities : end 9/14/2018 2:47:50 PM : IETW_EnableSource 9/14/2018 2:47:50 PM : IETW_EnableSource : ShowUI=-1 hParent=853458 ModalUI=-1 9/14/2018 2:47:50 PM : IETW_EnableSource : Ok 9/14/2018 2:47:50 PM : IETW_ModalEventLoop 9/14/2018 2:47:50 PM : IETW_ModalEventLoop : event.msg=$031F 9/14/2018 2:47:50 PM : IETW_MessageHook 9/14/2018 2:47:50 PM : IETW_MessageHook : state>=5 9/14/2018 2:47:50 PM : IETW_DS : Source or Source Manager reported an error to the user and handled the error; no application action required. 9/14/2018 2:47:50 PM : IETW_MessageHook : event.msg=$0000 9/14/2018 2:47:50 PM : IETW_MessageHook : MSG_NULL 9/14/2018 2:47:50 PM : IETW_MessageHook : end ... 9/14/2018 2:48:03 PM : IETW_ModalEventLoop : event.msg=$C273 9/14/2018 2:48:03 PM : IETW_MessageHook 9/14/2018 2:48:03 PM : IETW_MessageHook : state>=5 9/14/2018 2:48:03 PM : IETW_DS : Source is connected to maximum supported number of applications. 9/14/2018 2:48:03 PM : IETW_MessageHook : event.msg=$0103 9/14/2018 2:48:03 PM : IETW_MessageHook : processed MSG_CLOSEDSOK 9/14/2018 2:48:03 PM : IETW_DisableSource 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue 9/14/2018 2:48:03 PM : IETW_MessageHook 9/14/2018 2:48:03 PM : IETW_MessageHook : end 9/14/2018 2:48:03 PM : IETW_MessageHook 9/14/2018 2:48:03 PM : IETW_MessageHook : end 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue : end 9/14/2018 2:48:03 PM : IETW_DisableSource : Ok 9/14/2018 2:48:03 PM : IETW_MessageHook : end 9/14/2018 2:48:03 PM : IETW_ModalEventLoop : end 9/14/2018 2:48:03 PM : IETW_DisableSource 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue : end 9/14/2018 2:48:03 PM : IETW_DisableSource : Ok 9/14/2018 2:48:03 PM : IETW_CloseSource 9/14/2018 2:48:03 PM : IETW_CloseSource : Ok 9/14/2018 2:48:03 PM : IETW_CloseSourceManager 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue 9/14/2018 2:48:03 PM : IETW_MessageHook 9/14/2018 2:48:03 PM : IETW_MessageHook : end 9/14/2018 2:48:03 PM : IETW_EmptyMessageQueue : end 9/14/2018 2:48:03 PM : IETW_CloseSourceManager : Ok 9/14/2018 2:48:03 PM : IETW_UnloadSourceManager 9/14/2018 2:48:03 PM : IETW_UnloadSourceManager not Unloaded, for future uses 9/14/2018 2:48:03 PM : DestroyProxyWindow 9/14/2018 2:48:03 PM : DestroyProxyWindow : not destroyed, for future uses 9/14/2018 2:48:03 PM : IETW_Acquire : end 9/14/2018 2:48:07 PM : DestroyProxyWindow 9/14/2018 2:48:07 PM : DestroyProxyWindow : destroyed 9/14/2018 2:48:07 PM : IETW_UnloadSourceManager 9/14/2018 2:48:07 PM : IETW_UnloadSourceManager : Unload OK |
|
xequte
    
39140 Posts |
Posted - Sep 17 2018 : 17:44:47
|
Hi Craig
We are currently investigating this...
Nigel Xequte Software www.imageen.com
|
 |
|
xequte
    
39140 Posts |
Posted - Sep 28 2018 : 22:32:00
|
Hi Craig
A log item reports: "IETW_DS : Source is connected to maximum supported number of applications." Is it possible that another app has locked the device?
Also, can you try inserting a call to FreeResources() in TfrmMain.btnAcquireClick() of the AllAcquire demo:
... SaveProperties; ImageEnMView1.MIO.TwainParams.FreeResources(); ImageEnMView1.MIO.Acquire; ...
Finally, please also try the Twain demo, and let us know if that gives the same result.
Nigel Xequte Software www.imageen.com
|
 |
|
|
Topic  |
|
|
|