twain / twain-cs

A C# interface for TWAIN
165 stars 66 forks source link

Setup Scanner does not work in twancsscan (dialog freezes) [sf#4] #8

Closed kolomiets closed 7 years ago

kolomiets commented 7 years ago

Reported by jologi on 2014-08-21 07:09 UTC Hello!

I've tried out twain for c# in the actual version and find out, that the setup-dialog for the scanner (tested with canon and panasonic) freezes when called. It seems that the twain-communication-Thread (function main in TWAIN.cs) jumps in "CallerToThreadWaitOne()" and does not return. If I understood the behavior correctly, than at this point its not time for the application to send something to twain, instead the user must do something in the dialog so the application should "wait" on reaction from twain.

Best regards Jo

kolomiets commented 7 years ago

Commented by mlmcl on 2014-10-13 15:45 UTC Hi Jo...

Sorry about the delay in responding. I've been tracking this item for a while now, and I believe I have a potential fix that I'll be uploading later today. Look for version 2.3.0.4 to appear, if you'd like to try it.

The gist of the fix is that the toolkit wasn't sending process events to the driver, and for some drivers this prevents them from properly responding.

-- Mark

kolomiets commented 7 years ago

Updated by mlmcl on 2014-10-13 15:45 UTC

kolomiets commented 7 years ago

Commented by mlmcl on 2014-10-19 15:32 UTC Fixed in 2.3.0.5

This is the same problem as another ticket. Windowing messages were not being properly managed to a dialog when it was a child of the HINSTANT in DllMain (running in the same thread). I found a driver with the problem, so I was able to diagnose and fix it...

kolomiets commented 7 years ago

Updated by mlmcl on 2014-10-19 15:32 UTC

kolomiets commented 7 years ago

Commented by neokeats on 2017-03-08 14:17 UTC the bug is back in 2.3.2.0