-
Notifications
You must be signed in to change notification settings - Fork 28
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
Library:: open error - code 126 #4
Comments
@chip5441
In the first case you use OsStr and it works, in the second case you use normal &str and it does not work? The only explanation that comes to my mind is a problem with encoding string that is the argument to this function. Try to debug your code by printing out your argument and a conversion of str to OsStr. Something like this:
If your argument and converted are equal, then there is no reason for the library to fail. In this case please paste here your simplified code and I will try to fix this. But I suspect that you simply pass an invalid argument to the Library::open() function and this is why it does not work. Regards! |
@chip5441 Any updates about the issue? Do you still have the problem? |
No response for two weeks, closing because it was probably just a problem caused by providing invalid string to the library. |
Trying to open a DLL by full path wrapped in OsStr on windows 10. But error code 126 / The specified module could not be found, raised.
When passing path directly to open function, it works!?
Tks
The text was updated successfully, but these errors were encountered: