Can't scan with Gendex XRay scanner

Discussions about TWAIN & WIA scanning in GdPicture.NET using GdPictureImaging.
Post Reply
MattyBoy
Posts: 8
Joined: Mon Mar 15, 2010 5:46 pm

Can't scan with Gendex XRay scanner

Post by MattyBoy » Tue Sep 28, 2010 7:13 pm

We have a customer with a Gendex Orthoralix 9200. Driver GxTwain 1.603. Twain_32.dll = 1.7.1.1. Windows XP SP3.

The latest version of 6 crashes. Thanks, Matt

Log

Code: Select all

#GdTwain Log Start. Version: 645

RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Start: OpenSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Start: OpenSourceManager.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
DSM library loaded: C:\WINDOWS\TWAIN_32.DLL
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
Entry point of the DSM found.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 1
-------------------
End: OpenSourceManager.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 3
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
End: OpenSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: AcquireNative.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
Source: GxTwain
Manufacturer: TWAIN Working Group
-------------------
AcquireNative: Retrieving current device configuration - Start.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_FAILURE CC: TWCC_CAPUNSUPPORTED // TWmsg: 0
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
AcquireNative: Retrieving current device configuration - End.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
Start: WaitForXfer.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_GETCURRENT ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
Start: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
::DS operation. DG: DG_CONTROL - DAT: DAT_CAPABILITY - MSG: MSG_SET ->RC: TWRC_SUCCESS // TWmsg: f4
-------------------
End: SetXferMech.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Start: EnableSource.
RC:   TWRC_SUCCESS
CC:   TWCC_SUCCESS
State: 4
-------------------
Code....

Code: Select all

                byte[] sourceCaptureBytes = null;
                GdPictureImaging gdImaging = new GdPictureImaging();
                gdImaging.SetLicenseNumber("XXXXXXXXXXXXXXXXXXXXXXX");

                IntPtr hwnd = new WindowInteropHelper(this).Handle;

                if (!gdImaging.TwainOpenSource(hwnd, "GxTwain"))
                    return;
                               
                int imageId = gdImaging.TwainAcquireToGdPictureImage(hwnd);
                if (imageId != 0)
                {
                    int bytesRead = 0;
                    gdImaging.SaveAsByteArray(imageId, ref sourceCaptureBytes, ref bytesRead, DocumentFormat.DocumentFormatPNG, 100);
                    gdImaging.ReleaseGdPictureImage(imageId);
                }

                gdImaging.TwainCloseSource();

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

Re: Can't scan with Gendex XRay scanner

Post by Loïc » Thu Sep 30, 2010 11:26 am

Hi Matt,

Do you have an error message ?
Seems the crash come from the TWAIN driver. I see you are using GxTwain, ensure yourself to use latest version of this tool.

Unfortunately we can not buy a Gendex XRay scanner to investigate hardware issues...

Kind regards,

Loïc

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest