【发布时间】:2012-07-21 17:30:09
【问题描述】:
我在 Win C# 2010 中有一个应用程序,
我在表单中添加了 OpenFileDialog 控件。我编写了以下代码
OpenFileDialog1.ShowDialog();
它抛出以下异常:
AccessViolationException:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
可能是什么问题?以及如何解决?
谢谢..
【问题讨论】:
-
您可能需要创建 OpenFileDialog 控件的实例,我不确定您是否可以这样做...
-
能否提供完整代码?以及您要实施什么?
-
我的电脑最近遇到了类似的问题。关闭 Windows 的 Aero 主题,然后重试。
-
使用 SysInternals 的 AutoRuns 实用程序并禁用 shell 扩展。