Had a similar problem. Solved it by changing the calling convention to Cdecl instead of Winapi/Stdcall for all InterOp functions Example: [DllImport("libvlc", CallingConvention=CallingConvention.Cdecl)] internal static extern IntPtr libvlc_new(int argc, [MarshalAs(UnmanagedType.LPArray, Ar...