读书人

异常quot;Attempted to read or write pro

发布时间: 2012-03-09 16:54:57 作者: rapoo

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

读书人网 >.NET Framework

热点推荐