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 Driver problem in Windows OS x64

Forums › TWAIN Classic › Twain Driver problem in Windows OS x64

  • This topic has 2 replies, 3 voices, and was last updated 5 years, 7 months ago by GrahamL.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • May 10, 2015 at 9:35 pm #23009 Reply
    Alient35
    Participant
    • Topics - 2
    • Replies - 1
    • Total Posts - 3

    We have developed an application to control and scan any file like images, etc as a C# Winform App and it works under x86 OS platform successfully. In the app, we use C# twain class which to send a command to scanner so we can achieve what we want.
    As you all know, Twain_32.dll file is used to run the app and scan without failure.

    My question is, in x64 OS platforms, we can not run the app and get an error called BadImageFormatException that tries to tell us it’s all about OS type! So this error points me that i try to run the app under uncompatible OS type.

    I have experienced that 32 bit twain dll work under x64 systems but another problem cross my way.
    We run our all applications under one parent form which is MDI Parent form. So The form that I wanna use as scan purposes will be an MDI Client form. So well, while my program is compiled as ANYCPU, CLR will run it as x64 bit app in Windows x64 OS.
    That’s why, I can not run the app even if I compiled my scanning form as x86 platform target in x64 Win OS.

    Till here, I hope you all got what i mean!!!

    As a solution, I tried to install Twack 64 setup file to get Twaindsm.dll file and to run my app both in x86 and x64 OS machines.
    Also, in my custom twain source project, I changed to dll import attribute TwainDSM.dll instead of Twain_32.dll but it didn’t work out.

    So am i missing something here or Twain C# app does not recognize TWAINDSM.dll as twain dll?
    I got stuck at this step and can not go forward any further!!! pulling my hair for 3-4 days!!! 🙁

    A quick hand will be great help to me guys!
    Looking forward to hearing from you!!!

    May 28, 2015 at 8:59 am #26272 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    There are relatively few native 64-bit TWAIN drivers. So x64 and AnyCPU builds of C# applications can find themselves unable to find a useable scanner. You need to make sure that your application has some component built for x86, which may involve running that component in a separate process…

    June 26, 2015 at 9:39 am #26273 Reply
    GrahamL
    Participant
    • Topics - 1
    • Replies - 1
    • Total Posts - 2

    @MarkM wrote:

    There are relatively few native 64-bit TWAIN drivers. So x64 and AnyCPU builds of C# applications can find themselves unable to find a useable scanner. You need to make sure that your application has some component built for x86, which may involve running that component in a separate process…

    Hi Mark,

    We require 64 bit components as we need the extra memory for our particular applications. Do you know if there is a list of native 64 bit twain drivers or if twain is effectively a dead man walking now?

    Cheers

    Graham

  • Author
    Posts
Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: Twain Driver problem in Windows OS x64
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.