System.AccessViolationException: 尝试读取或写入受保护的内存。这一般指示其余内存已损坏。

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

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

 

从网上查阅,大多都是说由于调用C++等dll等等,但系统中确实没有关于其余dll的调用,非常郁闷。最后查得设置配置参数便可。blog

解决办法:内存

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

 

相关文章
相关标签/搜索