saraff-9EB1047A4BEB4cef8506B29BA325BD5A / Saraff.Twain.NET

Saraff.Twain.NET is the skillful scanning component which allows you to control work of flatbed scanner, web and digital camera and any other TWAIN device from .NET environment. You can use this library in your programs written in any programming languages compatible with .NET technology.
GNU General Public License v3.0
102 stars 35 forks source link

Attempted to read or write protected memory. This is often an indication that other memory is corrupt #84

Closed sishen2 closed 3 years ago

sishen2 commented 3 years ago

use example "Saraff.TwainX.NETCoreSample2" Set 72 dpi throw Exception "Attempted to read or write protected memory. This is often an indication that other memory is corrupt" ,

image

saraff-9EB1047A4BEB4cef8506B29BA325BD5A commented 3 years ago

Hello, @sishen2 Likely it related with your scanner. For more info you need show the stack trace of the exception. Also you can try different examples with same params.

sishen2 commented 3 years ago

hello, @saraff-9EB1047A4BEB4cef8506B29BA325BD5A But I won't have a problem using the ntwain example https://github.com/nozerowu/ntwain/tree/master/src/NTwain

saraff-9EB1047A4BEB4cef8506B29BA325BD5A commented 3 years ago

Hello, @sishen2 For more info you need show the stack trace of the exception. Also you can try different examples ( https://saraff-9eb1047a4beb4cef8506b29ba325bd5a.github.io/sarafftwain/#samples ) with same params.