创建包时出现OutOfMemoryException [英] OutOfMemoryException while creating package
问题描述
创建一些软件包时,我遇到了严重失败消息。在事件查看器中,错误列为:
System.OutOfMemoryException:抛出了类型'System.OutOfMemoryException'的异常。
这个消息可能在我创建包的过程中发生了3次。
我看到任务管理器,而HCK工具正在打包我的驱动程序并在其峰值,它使用~1.5 GB的RAM。我想在收到严重失败消息的时候,内存占用率更高,达到了一定限度。
是否有这样的限制?还有其他人遇到同样的问题吗?
我忘了提到我是在带有i5处理器和8 GB RAM的Windows 7 x64系统上运行HCK Studio。
经过一番研究,我发现32位进程的限制为2GB 64位系统上的4GB或4GB,具体取决于应用程序是否使用"IMAGE_FILE_LARGE_ADDRESS_AWARE"创建。是否设置了标记。
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778 (v = vs.85).aspx #memory_limits
我不知道如何验证是否使用了这个标志,但OutOfMemory异常似乎表明HCK工具达到2GB限制并崩溃。
I'm running into a Critical Failure message when creating some packages. In the event viewer, the error is listed as:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
This message happens probably 1 out of 3 times I create a package.
I watched the task manager while the HCK tool was packaging my drivers and at its peak, it used ~1.5 GB of RAM. I'm thinking during the times I received a Critical Failure message, the RAM usage was higher and hitting some limit.
Is there such a limit? Is anyone else experiencing the same issue?
I forgot to mention I'm running the HCK Studio on a Windows 7 x64 system with an i5 processor and 8 GB of RAM.
After some research, I did find that 32-bit processes have a limit of 2GB or 4GB on a 64-bit system depending on if the application was created with a "IMAGE_FILE_LARGE_ADDRESS_AWARE" flag set or not.
http://msdn.microsoft.com/en-us/library/windows/desktop/aa366778(v=vs.85).aspx#memory_limits
I'm not sure how to verify if this flag was used, but the OutOfMemory exceptions seem to suggest that the HCK tool is reaching the 2GB limit and crashing.
这篇关于创建包时出现OutOfMemoryException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!