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

TwainCSScan sample code.

Forums › TWAIN Classic › TwainCSScan sample code.

  • This topic has 1 reply, 2 voices, and was last updated 4 years, 11 months ago by MarkM.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 12, 2015 at 9:41 pm #23036 Reply
    neticous
    Participant
    • Topics - 1
    • Replies - 0
    • Total Posts - 1

    I have built the TWAIN for C-Sharp sample code and found when I run it it works fine until you Close and open the same scanner or another one.
    There is memory corruption when you Open a scanner after closing it or another one.
    Scan a few times seems to work but there is memory corruption and I am not sure where it is.
    I am using the fujitsu fi-7160.
    To reproduce to problem:
    Run TWAIN for C-Sharp preferably from within devstudio 2010-15
    Open the fi-7160
    Scan a few times
    Close the fi-7160
    Open the fi-7160
    Scan a few time
    The following will expose the memory corruption.
    Run the snipping tool that comes with windows 7.
    Select an area of the screen to snip, it does not matter what.
    If you are in the debugger of VS you will get an Access violation exception in the Main program.cs.

    You can also run this in WinDbg and see it happen.

    This does not happen with all scanners.

    It seems as though the this is not really being closed or cleaned up correctly for all scanners.
    This is also true for the Xerox Documate 3220 as well.

    I also have a fujitsu fi-6230 and it works fine.

    Anybody have an idea why this is happening?
    Is there something missing in the TWAIN for C-Sharp implementation that would take care of this issue?

    Thanks

    neticous

    February 24, 2016 at 2:55 pm #26326 Reply
    MarkM
    Participant
    • Topics - 1
    • Replies - 135
    • Total Posts - 136

    A number of fixes were made and checked on multiple scanner models. It’s very likely this problem has been addressed…

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: TwainCSScan sample code.
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

  • Big Ass Photos – Free Huge Butt Porn, Big Booty Pics
  • 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.
  • 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.