C # attempts to read or write protected memory. This usually indicates that other memory is corrupted.

Source: Internet
Author: User

Original: C # attempts to read or write protected memory. This usually indicates that other memory is corrupted.

Today open a previously written program, query database data, results Click Query Error, prompt display and ntdl.dll related.


When you debug with VS2012, you find that you are prompted to "try to read or write protected memory when you call the dataset." This usually indicates that other memory is corrupted. ”


Open Datasets Select Preview Data when vs error exits.


The system was Win7, and it was updated yesterday; Switch to the 2003 system and everything is fine.


After Baidu, find a solution:

Run cmd as administrator, type netsh winsock reset and enter (note that the administrator must be running this reset LSP connection)

Http://www.cnblogs.com/xinzhyu/p/3505286.html


After running the prompt to restart the effective, the result is OK without restarting. Recorded.


C # attempts to read or write protected memory. This usually indicates that other memory is corrupted.

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.