A PInvoke function has unbalanced the stack
Closed this issue · 1 comments
ladenedge commented
Submitted by Jason Carlson:
Managed Debugging Assistant 'PInvokeStackImbalance' : 'A call to PInvoke function 'WebRtcVadSharp!WebRtcVadSharp.WebRtc.WebRtcDll+NativeMethods::Vad_Process' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature.
ladenedge commented
From Jason, again:
The problem is that size_t in webrtcvad is platform dependent. So when called from x64 it is all good because you assume it is a long. From x86 it is a int/uint.