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

add wintypes to the ctypes import #350

Open
rdamiani opened this issue May 19, 2024 · 2 comments
Open

add wintypes to the ctypes import #350

rdamiani opened this issue May 19, 2024 · 2 comments

Comments

@rdamiani
Copy link

Using the internal simulator in the toolbox on win64, it bombs on line 256 of control_interface.py

dlclose = lambda handle: 0 if _dlclose(handle) else 1

fixed following this: https://bugs.python.org/issue30286

ctypes.windll.kernel32.FreeLibrary.argtypes = [wintypes.HMODULE] #RRD added
and importing wintypes in the ctypes import.

check my fork if useful, and can close this.
Thx.

@dzalkind
Copy link
Collaborator

Thanks for the update, @rdamiani. Can you provide a link to your suggested fix?

@rdamiani
Copy link
Author

rdamiani@e59b7ac
hopefully this works

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

2 participants