This project has moved. For the latest updates, please go here.

Cancel scan

Sep 25, 2014 at 2:12 PM
Edited Sep 25, 2014 at 3:23 PM
Hello Saraff. I've got an exist problem. While scan if I push cancel button scanner just freezing and
I cannot free scanner sources. Helps only scanner restart.

This exception i catch on TwainAcquireError event:
Exception = Saraff.Twain.TwainException: It worked!
e.Exception.ConditionCode is TwCC.Success

Best regards, Sergios
Coordinator
Sep 25, 2014 at 4:38 PM
Edited Sep 26, 2014 at 1:51 PM
Hello, tipasergio.
Apparently, in your event handler of TwainAcquireError contains an error. See Saraff.Twain.Sample2.
Sep 26, 2014 at 11:27 AM
Edited Sep 26, 2014 at 11:27 AM
on cancel runs endAction(); without any exception, but after you just cant scan again till restart scanner (i have try from windows tool scan too).
PS Saraff.Twain.Sample2 Doesnt scann, Saraff.Twain.Sample1 have the same problem with cancel and it doesnt run in x64 bild says cannot load DSM
Coordinator
Sep 26, 2014 at 1:52 PM
Hello, tipasergio.
Try update your Data Source Manager (DSM).
Sep 29, 2014 at 3:48 PM
thnx Saraf, but update dsm doesn't help me. Also twack32 have the same problems. I sould try just another scanner. Maybe my scanner does not work well with twain driver. With WIA driver i didn't have problems.