Home › Forums › TWAIN Classic › EnableDS throws AccessViolation in 64bit Application
- This topic has 2 replies, 1 voice, and was last updated 5 years, 4 months ago by Nithya Gnanasekar.
- AuthorPosts
- Nithya G
Hi,
We have migrated our c# Scanning feature to 64-bit. When i am calling EnableDS function, it throws AccessViolation(Attempted to read write protected memory) Exception in Windows 10 machine whereas in Windows 7 it is working fine. I am using Twain 2.1 DS Sample as my Data source.
Please someone help me on this issue.
Thanks in advance.
Mark McLaughlinThe open source TWAIN C# project demonstrates communicating with TWAIN using C#, I recommend checking it to see how it marshals the data for communicating with a TWAIN Driver. The repository is here: https://github.com/twain/twain-cs
Nithya GnanasekarMark,
I am receiving accessViolation in FreeImagex64.dll.
I have analyzed Twain c# Project and it built on .Net Framework version 3.5. From one of the third party website, they mentioned “64-bit TWAIN Free Image Scanner virtual TWAIN driver” doesn’t have support in higher version of .Net Framework. When I set 3.5 framework for my application, it works fine. Please provide your comments.
Thanks.
- AuthorPosts