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

Source: Internet
Author: User

Original: http://www.cnblogs.com/peace-lee/p/3586350.html

Yesterday encountered a strange problem, run VS2010 debugging program, always reported a mistake, and then the program was hung up: no available source ...., pop up a window tip: System.AccessViolationException:Attempted to read or write protected memory. This is often a indication that other memory is corrupt ".

Search on the internet for a long time and did not find a suitable solution, until you see StackOverflow Last post in the reply, tried to solve the problem.

See the phrase "I had the same problem after upgrading from. NET 4.5 to. NET 4.5.1. What fixed it for me is running this command "woke up early in the day with 360 hints. NET4.5 can be updated to 4.5.1, readily updated, is this the reason for me? And then saw someone reply to the solution is: netsh winsock reset, the administrator to run, and restart the computer, it really works, in view of this problem may other friends in the garden may encounter, so write to share;

Down to the "netsh winsock reset" meaning: Winsock is a Windows network programming interface, Winsock works on the application layer, it provides high-level data transfer programming interfaces independent of the underlying transport protocol Netsh winsock reset is to restore it to the default state; It is not clear to this explanation, I hope which master understand can do a little bit of the explanation of the popular point. Did NET4.5.1 change the bottom of something? Computer knowledge is still very deficient, let's learn it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.