TWAIN Working Group

Newsletter Signup
Donate
Help keep TWAIN free
  • About TWAIN
    • What’s New?
    • News
    • Events
    • Membership
    • Consider a Donation
    • Contact Us
  • Why TWAIN?
  • Developers
    • Driver Developer
    • Application Developer
    • TWAIN Features
    • Specification & Tools
    • Self Certification Process
  • Support Forums
  • Scanner End-User
  • Find Certified Drivers
    • Facebook
    • LinkedIn
    • Vimeo

HP Scanjet 7650 TWRC_FAILURE

Forums › TWAIN Classic › HP Scanjet 7650 TWRC_FAILURE

  • This topic has 6 replies, 5 voices, and was last updated 9 years, 9 months ago by Tech01.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • May 3, 2011 at 1:03 pm #22682 Reply
    mimi
    Participant
    • Topics - 3
    • Replies - 5
    • Total Posts - 8

    Hi,
    I am using HP Scanjet 7650 scanner connected to my application using Twain 2.1.
    when I run the scanning by single page from my application, it works well, but when I run the multiple Image Scanning I get TWRC_FAILURE

    Do some one know what does it mean?

    is this scanner not compatible with twain 2.1 ?

    Thanks

    May 3, 2011 at 6:02 pm #25430 Reply
    peterp
    Participant
    • Topics - 0
    • Replies - 30
    • Total Posts - 30

    @mimi wrote:

    Hi,
    I am using HP Scanjet 7650 scanner connected to my application using Twain 2.1.
    when I run the scanning by single page from my application, it works well, but when I run the multiple Image Scanning I get TWRC_FAILURE

    Do some one know what does it mean?

    is this scanner not compatible with twain 2.1 ?

    Thanks

    If it was not compatible with TWAIN, then you would not be able to even scan single pages. Without more information about your applications code, I can’t help with any guesses about why it works with single pages but not with the ADF.

    May 4, 2011 at 7:09 am #25431 Reply
    mimi
    Participant
    • Topics - 3
    • Replies - 5
    • Total Posts - 8

    My application is Java JEE wich use this c++ code that corresponds to the loop to run multi image scan and throw the TWRC_FAILURE error:


    while (GetMessage ((LPMSG) &msg, 0, 0, 0))
    {
    // Each window message must be forwarded to the currently open data
    // source.

    event.pEvent = (TW_MEMREF) &msg;
    event.TWMessage = MSG_NULL;

    g_rc = (*g_pDSM_Entry) (&g_AppID,
    &srcID,
    DG_CONTROL,
    DAT_EVENT,
    MSG_PROCESSEVENT,
    (TW_MEMREF) &event);

    // If the message does not correspond to a data source event, we must
    // dispatch it to the appropriate Windows window.

    if (g_rc == TWRC_NOTDSEVENT)
    {
    TranslateMessage ((LPMSG) &msg);
    DispatchMessage ((LPMSG) &msg);
    continue;
    }

    // If the currently open data source is requesting that it is ready to
    // begin image transfers, perform those transfers.

    if (event.TWMessage == MSG_XFERREADY)
    {
    nextImage:

    // Obtain information about the next image to be transferred.

    TW_IMAGEINFO ii;
    g_rc = (*g_pDSM_Entry) (&g_AppID,
    &srcID,
    DG_IMAGE,
    DAT_IMAGEINFO,
    MSG_GET,
    (TW_MEMREF) &ii);

    // If unable to obtain image information ...

    if (g_rc == TWRC_FAILURE)
    {
    // Cancel all remaining image transfers.

    (*g_pDSM_Entry) (&g_AppID,
    &srcID,
    DG_CONTROL,
    DAT_PENDINGXFERS,
    MSG_RESET,
    (TW_MEMREF) &pxfers);

    // Throw exception and break out of event loop.

    throwJTE (env, "msg_error_unable_to_obtain_image_information_acquire");
    break;
    }
    ...
    ....
    ....
    May 4, 2011 at 5:19 pm #25432 Reply
    Kaij
    Participant
    • Topics - 9
    • Replies - 132
    • Total Posts - 141

    The code you have posted is not specific to TWAIN 2.1. You may search in a different direction.

    Best regards,

    Kaij

    May 31, 2011 at 11:01 am #25433 Reply
    gabe
    Participant
    • Topics - 9
    • Replies - 583
    • Total Posts - 592

    if this were my code, I would test the code with a different device, try the code with a Kodak i30 driver in simulation mode.

    If the Kodak driver in simulation mode has the same error then your code is in error.
    If the Kodak driver works then you have potentially found a problem the the HP driver’s twain implementation.

    .

    June 1, 2011 at 9:50 am #25434 Reply
    mimi
    Participant
    • Topics - 3
    • Replies - 5
    • Total Posts - 8

    I think I found the pb !!!

    I installed an other scanner, FUJITSU fi-6140 scanner, and on the scanner list, I have 2 scanner access:

    FUJITSU fi-6140dj 9.21(32-32)
    WIA-fi-6140dj 1.0 (32-32)

    When I chose the 1st one, the scanner does not work, but witjh the 2nd one it’s ok!!

    can you tell me why do I have 2 scanner access for the same scanner?

    July 20, 2011 at 6:06 am #25435 Reply
    Tech01
    Participant
    • Topics - 1
    • Replies - 9
    • Total Posts - 10

    I think it is two drivers – for WIA and for TWAIN access to the same device.

  • Author
    Posts
Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: HP Scanjet 7650 TWRC_FAILURE
Your information:




Quick Links

Service Providers
TWAIN Support Forums
Membership
Contact Us
Privacy Policy

Newsletter Signup

TWAIN Working Group Family

TWAIN Working Group
TWAIN Direct®
TWAIN Resources
TWAIN Certified Drivers
PDF/raster

  • Facebook
  • GitHub
  • LinkedIn
  • Vimeo

Recent Topics

  • TWAIN for dental imaging integration
  • PDF/R For who and where?
  • Making searchable PDF with PDF/R
  • Backward compatibility with PDF/A and traditional PDF
  • could not open the twain source. Make sure there is a valid source for your sca
  • Quarterly Newsletter
  • TWAIN Working Group Membership
  • Logo Usage
  • TWAIN License
  • Contact Us
Privacy Policy • Privacy Tools • Copyright © 2021 TWAIN Working Group • by iHwy, LLC • Log in

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.