PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → [WD19] Twain / Scanner Error Handling
[WD19] Twain / Scanner Error Handling
Iniciado por guest, 02,abr. 2015 16:46 - No hay respuesta
Publicado el 02,abril 2015 - 16:46
I can not figure out how to handle a scanning error. If the wrong Twain device is selected then TwainToControl() hangs my application. I have tried TwainState(), but that returns tsUnloaded regardless of the device chosen. I have also tried catching the result of TwainToControl() but it hangs before I can get the result. Also, by hangs I mean stalls or locks up.

How do I handle users selecting the wrong Twain device?