首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET Framework >

异常"Attempted to read or write protected memory"

2012-03-09 
错误Attempted to read or write protected memory错误完整描述:Attempted to read or write protected

错误"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 之类了?

热点排行