System.AccessViolationException:尝试读取或写入受保护的内存

发布于 12-05 08:24 字数 308 浏览 6 评论 0原文

我在 Visual Studio 2008 中使用 .net Framework 3.5 创建了一个 Windows 服务。 当我在 32 位 Windows XP 计算机上运行我的服务时,该服务运行正常。

但是,当我在 Windows 7 64 位计算机上安装相同的服务时,出现以下错误: “System.AccessViolationException:尝试读取或写入受保护的内存。这通常表明其他内存已损坏”

我已经检查了同一主题的其他线程,但提供的答案都没有帮助我。

请帮助我解决这个问题。

提前非常感谢

R/ 萨钦

I have a windows service created with .net framework 3.5 in visual studio 2008.
When i run my service on the 32 bit windows XP machine, the service runs properly.

However, when i install the same service on the windows 7 64 bit machine i get the following error:
"System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt"

I have checked out other threads on the same subject, but none of the answers provided have helped me.

Kindly help me on this.

Thanx a lot in advance

R/
Sachin

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文