You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a seemingly inconsequential change in my code, I started getting errors like this
Exception ignored on calling ctypes callback function: <function get_hwnd_from_pid.<locals>.callback at 0x0000021CFE28B380>
Traceback (most recent call last):
File "c:\x\py_venv\Lib\site-packages\DearPyGui_DragAndDrop\tools.py", line 56, in callback
user32.GetWindowThreadProcessId(hwnd, ctypes.byref(lpdw_PID))
ctypes.ArgumentError: argument 1: OverflowError: int too long to convert
Like many argtypes in Python on 64-bit Windows, the argtypes were broken for this function and it expected a 32-bit HWND. Not a problem normally because of the calling convention, except that Windows will sometimes give you extremely large HWNDs under obscure conditions.
Fix:
Changing the relevant section of tools.py fixed this
After a seemingly inconsequential change in my code, I started getting errors like this
Like many argtypes in Python on 64-bit Windows, the argtypes were broken for this function and it expected a 32-bit HWND. Not a problem normally because of the calling convention, except that Windows will sometimes give you extremely large HWNDs under obscure conditions.
Fix:
Changing the relevant section of
tools.py
fixed thisReference: https://stackoverflow.com/a/37503441
The text was updated successfully, but these errors were encountered: