tPlaybackCapture ntpc =new tPlaybackCapture();
IntPtr sp = Marshal.AllocHGlobal(Marshal.SizeOf(ntpc));
Marshal.StructureToPtr(ntpc, sp, false);
这样转换出现System.ArgumentException异常
异常的提示为Additional information: Type could not be marshaled because the length of an embedded array instance does not match the declared length in the layout.
哪位大神帮忙解决一下啊,感激不尽!!!!