I have written a managed wrapper for native C++ class. One of the function in native C++ was taking variable number of arguments. I created a managed wrapper for it using [ParamArray] attribute. But still I get the error Run-Time check Error #0
. The value of ESP was not saved across function call. This might be because of the different calling convention. I read thet variable number of arguments uses _cdecl and In the managed wrapper before the api I put __cdecl but still get the same error.any solution on how to fix that.