【发布时间】:2013-06-06 06:52:59
【问题描述】:
我在使用 dllimport Attempted to read or write protected memory. This is often an indication that other memory is corrupt 时收到此错误
private const string dir2 = @"C:\NBioBSP.dll";
[System.Runtime.InteropServices.DllImport(dir2, SetLastError = true, CallingConvention = System.Runtime.InteropServices.CallingConvention.Cdecl)]
public static extern uint NBioAPI_FreeFIRHandle(IntPtr hHandle, IntPtr hFIR);
我这样称呼它
uint resultado = NBioAPI_FreeFIRHandle(handle, handle);
任何人都知道问题可能是什么
【问题讨论】:
-
你从哪里得到
handle?
标签: c#