errors with new May 17 version

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

errors with new May 17 version

Post by jimg » Thu May 28, 2009 6:05 pm

I have code which was working before and is now causing errors.

First, the if I open a scan source configuration and upon return try to check whether bar code is enabled, I get the following error:

LoadCapValuesN: Attempt to get capability value below State 4.
RC: TWRCC_FAILURE
CC: TWCC_NODS
State: 3

This occurrs issuing this line of code:
if (!(_GdPictureImaging.TwainIsBarcodeDetectionEnabled()))


Second, for my image aquisition I have a do while loop which at the beginning of the loop aquires image do Dib and the while condition is while GdPictureImaging.TwainGetState() > TwainStatus.TWAIN_SOURCE_ENABLED.

When scanning multi page docs, I only get one entrance into the loop. then the loop exits and twain state is TWAIN_SOURCE_OPENED.
Again, this loop worked in prior version.

did the TWAIN_STATE enum change?

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: errors with new May 17 version

Post by Loïc » Fri May 29, 2009 10:14 am

Hi,

The new release is a bit more strict on TWAIN usage for stability reasons.

So you have now to open a TWAIN source before setting device's configuration.


Just call TwainOpenDefaultSource before your TwainIsBarcodeDetectionEnabled call.

This should solve your issue.

Kind regards,

Loïc

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: errors with new May 17 version

Post by jimg » Sat May 30, 2009 7:15 pm

Loic, there's definately some new, and for me not so good behavior in this new release.

First, and less important because I have a work around. On the show config issue. The source was in TWAIN_SOURCE_OPEN state. I then allow the user to do config by issuing TwainShowSetupDialogSource. In the prior version, after user closes that dialog I would return to TWAIN_SOURCE_OPEN. Now on return, I am in state TWAIN_SM_OPEN which is why, I guess, I get the error when issuing TwainIsBarcodeDetectionEnabled. Now, with the new version, I need to close and reaquire the source after user closes source configuation. Also, I noticed that before when the user hit "Cancel" on source config the TwainShowSetupDialogSource would return false, now it returns true. Anyway, fortunately there is no need for users to open configuration too often so closing and reaquiring source after configuration is workable for me.

******* my other new problem described in my original post is more serious and I really want to do something so please read on ****

With the prior version I was able to create a do-while loop where each time I issue a TwainAcquireToDib. The while condition on the loop was, as in your documentation example, _GdPictureImaging.TwainGetState() > TwainStatus.TWAIN_SOURCE_ENABLED. So in the old version, while scanning was occuring the TwainStatus was greater than TWAIN_SOURCE_ENABLED (presumably something like TRANSFER_READY or TRANSFERRING). Eventuallly, the transfer would be done, and at that point the condition would be back to TWAIN_COURSE_OPEN and I the loop would exit and I would have aquired all scanned pages.

The new behavior different. Now, on the very first time through the loop (like the first page of a document from ADF) I get a valid Dib. But, the source is immediately back in TWAIN_SOURCE_OPEN state, even though there are more pending transfers. Thus I exit the loop and do not get all pages.

If I make the loop just loop forever (0 < 1) then I do get all pages. Eventually I issued a TwainAcquireToDib which causes my Kofax Twain driver to report "out of paper" and I get a zero Dib handle back. At that point I manually break the loop. The problem is that the user now needs to say "OK" on the Kofax out of paper error.

I've attached a gif of the code loop. Note at line 343 I am forcing the loop to go forever with by adding || 0 < 1 and at line 310 I am manually breaking the loop with dibHandle is zero. Line 307 will keep getting pages but when there is none finally, it causes Kofax TWAIN driver to display out of paper.

Note also I started a log just before entering the loop and ended just after ending the loop and that log file is inline below.

Do you know why this state immediately jumps to TWAIN_SOURCE_OPEN now event though there are more pending pages? Is this the "correct" behavior? (It seems to me the old behavior was better).


================ SCAN LOG TEXT =========================

Code: Select all

#GdTwain Log Start. Version: 628

RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
CatchBarCodes. Start
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
Using 'second' method to catch barcodes.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
CatchBarCodes. End
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: AbortAllPendingXfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_RESET ->RC: TWRC_SUCCESS
-------------------
End: AbortAllPendingXfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
CatchBarCodes. Start
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
CatchBarCodes. End
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
Start: Extended check for pending xfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
End: Extended check for pending xfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
CatchBarCodes. Start
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
CatchBarCodes. End
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: AbortAllPendingXfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_RESET ->RC: TWRC_SUCCESS
-------------------
End: AbortAllPendingXfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_SUCCESS
-------------------
End: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_EVENT - MSG: MSG_PROCESSEVENT ->RC: TWRC_DSEVENT CC: TWCC_SUCCESS
-------------------
MessageHook: MSG_XFERREADY.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
Start: DoOneTransfer.
RC:   TWRC_DSEVENT
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: NativeXferHandler.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 6
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_IMAGENATIVEXFER - MSG: MSG_GET ->RC: TWRC_XFERDONE CC: TWCC_SUCCESS
-------------------
End: NativeXferHandler.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
CatchBarCodes. Start
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_IMAGE - DAT: DAT_EXTIMAGEINFO - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
CatchBarCodes. End
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
Start: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 7
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_ENDXFER ->RC: TWRC_SUCCESS
-------------------
Start: Extended check for pending xfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_PENDINGXFERS - MSG: MSG_GET ->RC: TWRC_SUCCESS
-------------------
End: Extended check for pending xfers.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: EndXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: DoOneTransfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: ModalEventLoop.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
End: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
Start: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 5
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_DISABLEDS ->RC: TWRC_SUCCESS
-------------------
End: DisableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_XFERDONE
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: Kofax Software VRS - TWAIN
Manufacturer: Kofax
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_USERINTERFACE - MSG: MSG_ENABLEDS ->RC: TWRC_FAILURE CC: TWCC_OPERATIONERROR
-------------------
DS - DG_CONTROL/DAT_USERINTERFACE: Fail to enable Source.
RC:   TWRC_FAILURE
CC:   TWCC_OPERATIONERROR
State: 4
-------------------
End: EnableSource.
RC:   TWRC_FAILURE
CC:   TWCC_OPERATIONERROR
State: 4
-------------------
End: WaitForXfer.
RC:   TWRC_FAILURE
CC:   TWCC_OPERATIONERROR
State: 4
-------------------
AcquireNative: Transfer failed or cancelled.
RC:   TWRC_FAILURE
CC:   TWCC_OPERATIONERROR
State: 4
-------------------
End: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
#GdTwain Log Stop.


=============== END SCAN LOG TEXT =====================
Attachments
scanloop.gif

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: errors with new May 17 version

Post by Loïc » Mon Jun 01, 2009 7:49 pm

Hi,

The next release should solve your issue.

However, i think a call to .TwainSetMultiTransfer(True) just after opening the source can fix the problem.

Kind regards,

Loïc

jimg
Posts: 10
Joined: Sun Apr 26, 2009 6:39 pm

Re: errors with new May 17 version

Post by jimg » Tue Jun 02, 2009 3:58 pm

Yes, that did work. So, I'm shipping the new scanning module for my app to the customer now!

thanks

User avatar
Loïc
Site Admin
Posts: 5687
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: errors with new May 17 version

Post by Loïc » Tue Jun 02, 2009 4:00 pm

Ok perfect !

Thank you for the feedback.

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest