将应用程序从 32 位迁移到 64 位

发布于 2024-08-12 01:59:34 字数 150 浏览 3 评论 0原文

我们有一个用 C# 编写的针对 AnyCPU 的 Windows 服务应用程序。它运行在Win2003(32位)服务器上。最近它开始内存不足。

将此服务重新部署到 Win2003(64 位)机器涉及什么。我需要重新编译它吗?如果我不重新编译它,应用程序会获得更多内存吗?

We have a Windows Service app written in C# targeted for AnyCPU. It runs on a Win2003 (32bit) server. Recently it started to run out of memory.

What is involved in redeploying this service to a Win2003 (64bit) box. Do I need to recompile it and will the App get more memory if I do not recompile it?

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

§对你不离不弃 2024-08-19 01:59:34

如果 exe 设置为 AnyCPU,则没有什么特别的 - 64 位 CLR 将默认在 64 位计算机上加载。您只需确保您真正准备好 AnyCPU(没有不安全或安全的 32 位指针数学假设等)。如果您在没有 PInvoke 的情况下运行所有​​托管代码,那么您应该处于良好状态。

Nothing special if the exe is set for AnyCPU- the 64-bit CLR will load by default on a 64-bit machine. You just have to make sure you're REALLY AnyCPU ready (no unsafe OR safe 32-bit pointer math assumptions, etc). If you're running all managed code with no PInvokes, you should be in good shape.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文