110,571
社区成员
发帖
与我相关
我的任务
分享
[DllImport("mwrf32.dll")]
public static extern int rf_init(int port, long baud);
int icdev= rf_init(4,9600);
[DllImport("mwrf32.dll")]
public static extern Int16 rf_anticoll(int icdev, Byte _Bcnt, out UInt64 _Snr);
[DllImport("mwrf32.dll")]
public static extern Int16 rf_select(int icdev, UInt64 _Snr,out Byte _Size);
Int16 st;
UInt64 _Snr;
Byte _Size;
st=rf_anticoll(icdev,0,out _Snr);
st = rf_select(icdev, _Snr,out _Size);
执行到最后一步出现;尝试读取或写入受保护的内存。这通常指示其他内存已损坏。