Windows 7中的访问冲突问题-尝试读取或写入受保护的内存.这通常表明其他内存已损坏 [英] Access violation issue in Windows 7 - Attempted to read or write protected memory. This is often an indication that other memory is corrupt

查看:171
本文介绍了Windows 7中的访问冲突问题-尝试读取或写入受保护的内存.这通常表明其他内存已损坏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个从.net 3.5迁移的.net 4.0 Windows应用程序.

该Windows应用程序使用第三方DLL文件(来自Windows \ system32 \ MyScanner.dll),该文件用于通过USB端口与连接到系统的扫描仪进行连接.

该应用程序在Windows XP(Service Pack 3)中运行良好,但在Windows 7 Professional(32位)中则无法正常运行.异常如下,
系统.AccessViolationException:尝试读取或写入受保护的内存.这通常表明其他内存已损坏"..

我在这个问题上搜索了很多,但是没有一个解决方案起作用.我试图在Windows中为MyScanner.dll禁用DEP策略,但没有效果.

Hi all,

I have a .net 4.0 windows application which is migrated from .net 3.5.

This windows application is using a third party DLL file (from Windows\system32\MyScanner.dll) which is used to connect with a scanner attached to the system through USB port.

This application is working fine in Windows XP (Service pack 3) but not in Windows 7 Professional (32 bit). The exception is as follows,
"System. AccessViolationException : Attempted to read or write protected memory. This is often an indication that other memory is corrupt".

I googled a lot regarding this issue, but none of the solutions worked. I tried to disable the DEP policy in windows for the MyScanner.dll, but no effect.

Is anybody have a solution to this?

推荐答案

没有解决此问题的一般方法.您需要做的第一件事是发现程序中发生错误的位置以及原因,然后尝试进行修复.如果DLL中有错误,则需要返回供应商并从他们那里得到一些诊断.
There is no general resolution to this problem. The first thing you need to do is to discover where in the program the error is occurring and why, and then try and fix it. If the error is in the DLL then you need to go back to the suppliers and get some diagnosis from them.


这篇关于Windows 7中的访问冲突问题-尝试读取或写入受保护的内存.这通常表明其他内存已损坏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆