日期:2014-05-20  浏览次数:20923 次

错误"Attempted to read or write protected memory"
错误完整描述:

Attempted to read or write protected memory. This is often an indication that other memory is corrupt
at Microsoft.Win32.Win32Native.CoTaskMemFree(IntPtr ptr) at ...(这里是我的函数名)

错误出现的上下文:
在C#调用C++的一个导出函数时出现,而且仅在一台机器上出现。

我想应该不是程序的问题,可能是设置方面的问题,不知哪位有经验,烦请指点一二。





------解决方案--------------------
没有经验,帮顶
------解决方案--------------------
限制级别的事情Attempted to read or write protected memory.
------解决方案--------------------
函数名前 是protect 之类了?