System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
2014-05-19 16:44
956 查看
原文:/article/5747293.html
昨天遇到一个比较奇怪的问题,运行VS2010调试程序的时候,总是会报一个错,然后程序就挂掉了:无可用源….,弹出一个窗口提示:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
在网上搜索了好久也没有找到可以合适的解决方法,直到看到stackoverflow上一个帖子里的回复,试了试才算解决了问题。
看到这么一段话“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难道是对底层什么东西做了修改?计算机知识还是很欠缺的,加油学习吧。
昨天遇到一个比较奇怪的问题,运行VS2010调试程序的时候,总是会报一个错,然后程序就挂掉了:无可用源….,弹出一个窗口提示:System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
在网上搜索了好久也没有找到可以合适的解决方法,直到看到stackoverflow上一个帖子里的回复,试了试才算解决了问题。
看到这么一段话“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".
- System.AccessViolationException: Attempted to read or write protected memory This is often an indication that other memory is corrupt
- 关于accessviolationexception. Attempted to read or write protected memory. This is often an indication that other memory is corrup
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
- Message: Attempted to read or write protected memory. This is often an indication that other memory
- c# 传递Null的string值导致的调用C++的dll报错 Attempted to read or write protected memory.
- C#调用haskell遭遇Attempted to read or write protected memory
- FIX: "There is insufficient system memory in resource pool 'internal' to run this query" error
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- Trying to use an SPWeb object that has been closed or disposed and is no longer valid.
- Question 12: In C++, which of the following is the best declaration for an overloaded operator[] to allow read-only access (and
- Waring:This LinearLayout layout or its FrameLayout parent is useless; transfer the background attribute to the other view
- org.hibernate.MappingException: An AnnotationConfiguration instance is required to use <mapping class="Bbs"/>
- SharePoint 爬网错误:Access is denied. Check that the Default Content Access Account has access to this content && 本机无法访问moss 站点
- PRB: "Requested Registry Access Is Not Allowed" Error Message When ASP.NET Application Tries to Write New EventSource in the Eve
- System.Security.Cryptography.CryptographicException: Keyset does not exist or Access is denied.
- 'System.Security.SecurityException: Requested registry access is not allowed.' when writing to event log
- How to write an application that supports the Fast User Switching feature by using Visual Basic .NET or Visual Basic
- How to mount partition with ntfs file system and read write access