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

Twain 1.7.1.3 function is throwing unknown exception

Forums › TWAIN Classic › Twain 1.7.1.3 function is throwing unknown exception

  • This topic has 2 replies, 3 voices, and was last updated 4 years, 5 months ago by pmanickavel.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • November 5, 2015 at 5:44 am #23039 Reply
    pradeep kumar
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    Hello

    Twain 1.7.1.3 function is throwing an unknown exception. Is it possible to log the exception? Is it possible to use kLog in twain_32.dll as in TWAINDSM.dll?

    Thanks
    Pradeep Kumar Manickavel

    December 17, 2015 at 3:50 pm #26337 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    The TWAIN_32.DLL is effectively “dead code” insofar as it’s not possible to make changes to it, and it’s closed code not open source. It was last modified around the early 2000’s. Using the newer TWAINDSM.DLL is a better solution.

    There is a logging mechanism for TWAIN_32.DLL, but it’s very limited, and if a crash is occurring it’s unlikely that it will be able to write the information you want to disk.

    Your best bet is to go through each of the steps the application is doing using the TWACKER (you can collect the commands using the TWAINDSM.DLL logging), and when you find the one that’s causing the crash contact the scanner manufacturer or the application writer for more help.

    August 8, 2016 at 1:59 pm #26338 Reply
    pmanickavel
    Participant
    • Topics - 0
    • Replies - 1
    • Total Posts - 1

    Thanks Mark!
    Now I have decided to upgrade to TWAINDSM. And I am planning to refer the library statically into my C++/CLI wrapper code rather than invoking the dll using DLLIMPORT. I face some issues as the entry method shall be invoked once after LoadLibrary is called. In my wrapper code case, I am going to refer it as a static lib and hence I don’t require LoadLibrary. Now I am not able to create reference to the DSMENTRYPROC. Please guide me how to proceed with C++/CLI wrapper code for TWAINDSM.

    Please note that this wrapper dll will be consumed in C# code. I know that even in C# we can invoke TWAINDSM through DLLIMPORT, but here is the condition that I should refer it statically.

    Any suggestions and comments are appreciable.

    Thanks
    Pradeep Kumar

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Twain 1.7.1.3 function is throwing unknown exception
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.