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


系统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"

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM