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

昨天遇到一个比较奇怪的问题,运行VS2010调试程序的时候,总是会报一个错,然后程序就挂掉了:无可用源….,弹出一个窗口提示:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".

在网上搜索了好久也没有找到可以合适的解决方法,直到看到*上一个帖子里的回复,试了试才算解决了问题。

看到这么一段话“I had the same problem after upgrading from .NET 4.5 to .NET 4.5.1. What fixed it for me was running this command”,入梦初醒,前天360提示.NET4.5可以更新到4.5.1,随手就更新了,难道我的也是这个原因?然后看见有人回复解决之道是:netsh winsock reset;管理员身份运行,并重启电脑后,果真好使了,鉴于这个问题可能园子里别的朋友也可能会遇到,所以就写出来分享下;

往下查了下“netsh winsock reset”的意思:winsock是Windows网络编程接口,winsock工作在应用层,它提供与底层传输协议无关的高层数据传输编程接口 netsh winsock reset 是把它恢复到默认状态;表示对这个解释没有看明白,希望哪个高手明白可以做一下通俗点的解释.NET4.5.1难道是对底层什么东西做了修改?计算机知识还是很欠缺的,加油学习吧。

System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".,布布扣,bubuko.com

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

上一篇:Mysql 主从复制,读写分离设置


下一篇:MongoDB 最初级步骤