Home › Forums › TWAIN Classic › I’m perplexed by duplex
- This topic has 1 reply, 2 voices, and was last updated 17 years, 7 months ago by dpenney.
- AuthorPosts
My application, which can handle duplex scanning via a Fujitsu fi4220c scanner, errors when I try duplex scanning on a Fujitsu fi5220c.
My code checks CAP_DUPLEX (it is TWDX_1PASSDUPLEX for both) so I set DUPLEXENABLED = true and XFERCOUNT = 2 when I scan each sheet via the feeder.
Having got the MSG_XFERREADY message I do the following:
iRtn = DSM_Entry(m_tAppID,m_tSrcID,DG_IMAGE,DAT_IMAGENATIVEXFER,MSG_GET,lhDIB)
If iRtn = TWRC_XFERDONE Then
' ... process dib handle ... and then check for pending xfers
iRtn = DSM_Entry(m_tAppID,m_tSrcID,DG_CONTROL,DAT_PENDINGXFERS,MSG_GET,tPending)
If tPending.Count <> 0 Then
' tPending.Count is '-1' - attempt to get second image
iRtn = DSM_Entry(m_tAppID,m_tSrcID,DG_IMAGE,DAT_IMAGENATIVEXFER,MSG_GET,lhDIB)this causes the following error
The calling procedure is invalid. (Internally)(Code: DS50002)
Does anyone have any idea how I can get duplex scanning to work for the newer version scanner?
Thanks
Can you do a duplex scan using the fi5220c DS in any program other than your own? If not, you probably found a bug in the DS. I would suggest trying to contact Fujitsu for a solution.
If you can do a duplex scan in some other program it MAY indicate that your program will work if you switch to a memory or file transfer. Very few programs use native transfers so perhaps Fujitsu is not aware that their fi5220c DS has a bug when using native transfers for duplex scans.
- AuthorPosts