定义2个按钮【扫描】、【补扫】
【扫描】时,线程启动扫描方法,创建TwainSession 扫描
【补扫】时,线程启动补扫方法,继续使用【扫描】创建的TwainSession
使用大多数扫描仪正常,但是拍照机拍照时,系统直接崩溃,捕捉不到任何信息:
Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: xxx.exe
Problem Signature 02: 1.0.0.0
Problem Signature 03: 54bdf25b
Problem Signature 04: Leadtools.Twain
Problem Signature 05: 18.0.4.0
Problem Signature 06: 52ca616c
Problem Signature 07: 54e
Problem Signature 08: 2e
Problem Signature 09: System.AccessViolationException
OS Version: 6.1.7601.2.1.0.256.48
Locale ID: 2052
Additional Information 1: 0a9e
Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
Additional Information 3: 0a9e
Additional Information 4: 0a9e372d3b4ad19135b953a78882e789
有时候能够捕捉到以下异常:
Leadtools.Twain.TwainException: Failure due to unknown cause
at Leadtools.Twain.TwainException.CheckErrorCode(Int32 code)
at Leadtools.Twain.TwainSession.Acquire(TwainUserInterfaceFlags flags)
...
其中实现Acquire的方法中也增加了try catch,但是没有获取到任何信息 |
|