<runtime>
<gcAllowVeryLargeObjects enabled="true" />
</runtime>
而且我有足够的内存。
在Visual Studio的调试和发布模式下都能正常运行。
当我使用命令行执行时,它会给我 "Out of Memory "错误信息
有谁知道这个问题吗?
我发现它。
问题是缺少配置文件。
复制 exe
文件到另一个目录,而不需要复制 exe.config
文件。<gcAllowVeryLargeObjects enabled="true" />
在运行时间。