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.