如何解决我以下陈述的问题:"The project crashes when the memory reaches 4 gb"
How to solve the issue of my following statement: "The project crashes when the memory reaches 4 gb"
我正在从事一个从 Active Directory 导入数据以将备份数据放入 SQL 数据库的项目。在 Active Directory 中,我有大量数据导致我的应用程序崩溃,因为内存在 运行 时间达到超过 4 GB。
有人expreienced/faced遇到过这样的问题吗?我该如何解决?
提前致谢!
我已经通过将项目属性中的目标平台更改为 64 位解决了这个问题。
要更改目标平台,请转到菜单栏上的 Project -> {您的项目名称} Properties -> 构建 -> 目标平台 -> 选择x64。
参考文献:
- https://social.msdn.microsoft.com/Forums/vstudio/en-US/81de7e68-bfd3-4b1c-b64e-8c5444e359e9/how-do-i-set-visual-studio-2019-to-64-bit?forum=visualstudiogeneral
- https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2019
- https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=msvc-160
我正在从事一个从 Active Directory 导入数据以将备份数据放入 SQL 数据库的项目。在 Active Directory 中,我有大量数据导致我的应用程序崩溃,因为内存在 运行 时间达到超过 4 GB。
有人expreienced/faced遇到过这样的问题吗?我该如何解决?
提前致谢!
我已经通过将项目属性中的目标平台更改为 64 位解决了这个问题。
要更改目标平台,请转到菜单栏上的 Project -> {您的项目名称} Properties -> 构建 -> 目标平台 -> 选择x64。
参考文献:
- https://social.msdn.microsoft.com/Forums/vstudio/en-US/81de7e68-bfd3-4b1c-b64e-8c5444e359e9/how-do-i-set-visual-studio-2019-to-64-bit?forum=visualstudiogeneral
- https://docs.microsoft.com/en-us/visualstudio/ide/how-to-configure-projects-to-target-platforms?view=vs-2019
- https://docs.microsoft.com/en-us/cpp/build/how-to-modify-the-target-framework-and-platform-toolset?view=msvc-160