在命令行执行过程中内存不足

问题描述 投票:0回答:1

你好,我的程序是建立在64位的,我已经配置好了。enter image description here

  <runtime>  
    <gcAllowVeryLargeObjects enabled="true" />  
  </runtime>  

而且我有足够的内存。

在Visual Studio的调试和发布模式下都能正常运行。

当我使用命令行执行时,它会给我 "Out of Memory "错误信息

有谁知道这个问题吗?

c# .net visual-studio console-application
1个回答
1
投票

我发现它。

问题是缺少配置文件。

复制 exe 文件到另一个目录,而不需要复制 exe.config 文件。<gcAllowVeryLargeObjects enabled="true" /> 在运行时间。

© www.soinside.com 2019 - 2024. All rights reserved.