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

Success loaded Twain_32.dll and GetLastError = 203

Forums › TWAIN Classic › Success loaded Twain_32.dll and GetLastError = 203

  • This topic has 1 reply, 2 voices, and was last updated 8 years, 5 months ago by MarkM.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • August 3, 2012 at 8:58 pm #22771 Reply
    sunshine_ak
    Participant
    • Topics - 7
    • Replies - 4
    • Total Posts - 11

    Hello,

    I have following problem in my app:
    Twain_32.dll is loaded with success – handle is not NULL, but GetLastError() returns 203 – ERROR_ENVVAR_NOT_FOUND. Does anybody had similar problem?
    Then GetProcAdress also end with success and GetLastError returns 203.
    In next steps app can connect with scanner, but after enable DS, scanner stops scanning without any error. It doesn’t return MSG_XFERREADY. I think app gets other msg, maybe MSG_CLOSEDS or CLOSE or MSG_CLOSEREQ.

    I don’t know why it is happening in that way, because I didn’t get any error messages…
    The strangest thing is that LoadLibrary succeses and error is 203.

    The scanner is Dell p513w with 32bit app on 64bit Windows 7. When using the same scanner in Photoshop with twain driver, everything works fine. I also tested other scanners with that app on 64bit Windows and it worked without problems.

    Does anybody have any suggestions?

    August 5, 2012 at 2:55 am #25668 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    There are two different issues here…

    First, GetLastError is only going to have meaning for a win32 call if it
    returns an error, otherwise the value stays unchanged. LoadLibrary
    is an exception, because the DLL’s DllMain is run, and it can make
    all kinds of calls. That 203 just means an optional environment
    variable wasn’t found, it’s not really an issue…

    The other problem can happen for any number of reasons. You
    should ask the scanner vendor for help.

    As a stopgap, try issuing DG_IMAGE/DAT_IMAGEINFO/MSG_GET every
    second, until you get TWRC_SUCCESS and see if the driver is
    actually getting into state 6…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Success loaded Twain_32.dll and GetLastError = 203
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

  • EPSON V600 TWAIN and WIA on Windows 10
  • When and how to use WaitForEvents command ?
  • Problem enumerating list of installed scanners in windows server 2012
  • Failed to create TWAIN progress! Error code is 1260.
  • To get the list of scanners from javascript client side (browser)
  • 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.