naps2 icon indicating copy to clipboard operation
naps2 copied to clipboard

GetDeviceList for TWAIN crashes

Open rokoduran opened this issue 7 months ago • 2 comments

Describe the bug For the NAPS SDK - Entire app freezes when attempting to fetch devices for TWAIN

To Reproduce Steps to reproduce the behavior: I am using an app where after a message via websockets I attempt fetching all available TWAIN sources. On the getDeviceList call the entire program freezes and just skips the rest of the function's execution.

Before NAPS I used DTWAIN and I had similar issues - I needed to wrap TWAIN executions in STAThreads. I tried doing the same thing here but to no avail. Please help me out here, I'm losing it, there's nothing in the docs about these cases.

Expected behavior Successfully fetches devices and the entire thread doesn't die

Screenshots

Image

Desktop (please complete the following information):

  • OS: Win 10
  • Version 10.0.19

rokoduran avatar Apr 25 '25 12:04 rokoduran