Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有没有人出这个错误? 尝试读取或写入受保护的内存。这通常指示其他内存已损坏。 #7

Open
tweihong opened this issue Dec 19, 2017 · 6 comments

Comments

@tweihong
Copy link

tweihong commented Dec 19, 2017

“test_interface.exe”(CLR v4.0.30319: DefaultDomain): 已加载“C:\windows\Microsoft.Net\assembly\GAC_64\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
“test_interface.exe”(CLR v4.0.30319: DefaultDomain): 已加载“E:\BaiduYunDownload\EasyPR-DLL-CSharp-master\test_interface\bin\x64\Release\test_interface.exe”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
模块“test_interface.exe”的符号未加载。

  1. 使用调试生成配置或禁用调试选项“启用‘仅我的代码’”。
  2. 检查调试选项下的“符号”设置。“test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll”。已跳过加载符号。模块进行了优化,并且调试器选项“仅我的代码”已启用。
    “test_interface.exe”(CLR v4.0.30319: test_interface.exe): 已加载“C:\windows\Microsoft.Net\assembly\GAC_MSIL\mscorlib.resources\v4.0_4.0.0.0_zh-Hans_b77a5c561934e089\mscorlib.resources.dll”。模块已生成,不包含符号。

“System.AccessViolationException”类型的未经处理的异常在 test_interface.exe 中发生

尝试读取或写入受保护的内存。这通常指示其他内存已损坏。

@cbGhost
Copy link

cbGhost commented Apr 7, 2018

解决了那?

@cbGhost
Copy link

cbGhost commented Apr 7, 2018

请问呢解决了吗

@2btliu
Copy link

2btliu commented Aug 8, 2018

遇到了同样的问题,请问是怎么解决的

@Michael-Lee-Wang
Copy link

Michael-Lee-Wang commented Oct 6, 2018

运行模式与生成的dll模式不匹配引起的

@upwon
Copy link

upwon commented Dec 13, 2018

release x64就可以啦

@dulizhi
Copy link

dulizhi commented May 7, 2020

win7 + vs2013 ,release x64
运行到以下代码
int result_num = lps(file_name, 2);// 只写结果

出现错误:System.AccessViolationException:“尝试读取或写入受保护的内存。这通常指示其他内存已损坏。”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants