From 52b5682f384590db165cfe2d9a3e54276fe3cea0 Mon Sep 17 00:00:00 2001 From: konbraphat Date: Fri, 25 Jul 2025 20:39:41 +0900 Subject: [PATCH] fix overflow error --- eyex/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/eyex/api.py b/eyex/api.py index 9c09347..4b11b6b 100644 --- a/eyex/api.py +++ b/eyex/api.py @@ -71,6 +71,7 @@ def _initialize_interactor_snapshot(self): def _event_handler(self, async_data, userParam): event = c.c_voidp() behavior = c.c_voidp() + async_data = c.c_void_p(async_data) self.eyex_dll.txGetAsyncDataContent(async_data, c.byref(event)) @@ -89,6 +90,7 @@ def _event_handler(self, async_data, userParam): self.eyex_dll.txReleaseObject(c.byref(event)) def _on_snapshot_committed(self, async_data, param): + async_data = c.c_void_p(async_data) result = c.c_int(0) self.eyex_dll.txGetAsyncDataResultCode(async_data, c.pointer(result))