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
I'm trying to run the example of the lib but I'm getting this error:
Traceback (most recent call last):
File "C:\Users\Sve\code\apex-oled-fps-counter\src\__main__.py", line 32, in <module>
main ()
File "C:\Users\Sve\code\apex-oled-fps-counter\src\__main__.py", line 21, in main
data = fps_inspector.get_all_fliprates ()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Sve\code\apex-oled-fps-counter\Lib\site-packages\fps_inspector_sdk\fps_inspector.py", line 125, in get_all_fliprates
res = PresentMonDLL.get_instance().GetData (current_size, time_arr, fliprate_arr)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ctypes.ArgumentError: argument 1: <class 'TypeError'>: wrong type
I'm running the script in Windows Powershell (elevated)
The PID passed to the script is that of the currently focused window
The values passed to the GetData function are as follow:
Hi,
I'm trying to run the example of the lib but I'm getting this error:
I'm running the script in Windows Powershell (elevated)
The PID passed to the script is that of the currently focused window
The values passed to the GetData function are as follow:
What strikes me is that the type of the current_size variable is numpy.ndarray, and GetData's first parameter name suggest it is waiting for an int.
When I pass curent_size[0] as the first param, the error is gone and I get my results.
Did I miss something ?
The text was updated successfully, but these errors were encountered: