Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SDK reports "Could not start worker" in log when program running on Windows #565

Open
mak-42 opened this issue Feb 27, 2025 · 0 comments
Open

Comments

@mak-42
Copy link

mak-42 commented Feb 27, 2025

I'm trying using NAPS SDK (1.1.4) in my project. I've notice that it reports "Could not start worker" error in log when my application is running on Windows. The report contains an exception with the message: "An error occurred trying to start process 'D:\testnap2scan\NAPS2.exe' with working directory 'D:\testnap2scan'. The system cannot find the file specified."

The problem is in WorkerFactory.CreateDefault. "NAPS2.exe" is hardcoded for a native worker name. There is no way to fix it in a program based on SDK, because WorkerFactory is an internal class.

However my application can obtain images from scanner.

Could you, please, fix it.
And could you, please, clarify why this native worker is required? Shall I implement something like this in my application?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant