My Life My Dream!

守信 求实 好学 力行
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

系统debug时出现错误,System.AccessViolationException: 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。

Attempted to read or write protected memory. This is often an indication that other memory is corrupt

 

从网上查阅,大多都是说因为调用C++等dll等等,但系统中确实没有关于其他dll的调用,很是郁闷。最后查得设置配置参数即可。

解决办法:

Tools menu ->Options -> Debugging -> General -> Uncheck this option "Suppress JIT optimization on module load"