日期:2014-05-18 浏览次数:20526 次
using System.Runtime.InteropServices; byte[] test = new byte[5]; GCHandle hObject = GCHandle.Alloc(test, GCHandleType.Pinned); IntPtr pObject = hObject.AddrOfPinnedObject(); if(hObject.IsAllocated) hObject.Free();
------解决方案--------------------