Home › Forums › TWAIN Classic › Response 0 in line TwainAcquireToGdPictureImage()
- This topic has 1 reply, 1 voice, and was last updated 5 years ago by markm.
- AuthorPosts
- Jonathan Martinez
Good Day.
I am work in a application developed in C#.net with GdPicture 14 and a scaner Fujitsu fi-60F and only occasionally when I execute this line of code “_oGdPictureImaging.TwainAcquireToGdPictureImage (parHandle);” returns a result of 0 and I can’t get the image.
According to the documentation, a 0 means that the image has not been created.
I have enabled the TWAIN Log with the TwainLogStart instruction and we have found (according to the TWAIN status (TWAINStatus)), that when we have this behavior the TWAIN does not reach the Status 7 but it jumps from 6 to 5.
Please of your help with this case.
Greetings.
markmI can’t speak for the behavior of a specific scanner. But the transition from state 6 to 5 occurs if DG_CONTROL / DAT_PENDINGXFERS / MSG_RESET is called in state 6, or DG_CONTROL / DAT_PENDINGXFERS / MSG_ENDXFER is called in state 6 (or 7) and TW_PENDINGXFERS.Count returns a value of 0.
- AuthorPosts