Python call to DLL via CDLL Results in “STATUS_STACK_BUFFER_OVERRUN” Exception
I’m trying to make a call to an (https://www.autelrobotics.com/doc/609/) via a DLL in Python and the app crashes before the call returns. The Windows error logs show it to be a “STATUS_STACK_BUFFER_OVERRUN” exception, but I would think would mean that one of the variables being passed isn’t sized correctly.
Why ctypes.CDLL is assuming long result type even though it’s actually is long long?
Consider python code below – it seems that calling .dll’s function is assuming long time for some reason (system is windows x64 if it’s important).
Why it’s doing this? Is there way to disable it? Will it get in the way in other cases, e.g. if I’m going to pass long long
arguments or initialize structs using long long
s?