What are the default maximum RAM allotments for a Silverlight 4 app?

大兔子大兔子 提交于 2019-12-01 09:38:10

问题


Dealing with an issue where loading a large file into memory in a Silverlight 4 app leads to a an out of memory exception, and a crash. The file is ~100MB. I am trying to determine if Silverlight has some sort of default limit on RAM.


回答1:


I can tell you only about Silverlight 5, as I'm having issue with it now.

As some author has written here, on any machine (x86, or x64) for 32-bit process the memory limit by default is 2 GB. If special flag in .exe header is set (called IMAGE_FILE_LARGE_ADDRESS_AWARE), then the limit is increased to 4 GB. However, in OOB mode Silverlight app is lauched by C:\Program Files (x86)\Microsoft Silverlight\sllauncher.exe, which is 32-bit process that doesn't have appropriate flag set, so it has 2GB memory limit MINUS ~800 MB for .NET CLR usage.

In short terms: RAM limit (at least in my case, OOB mode) is 1.3 GB.

(sorry I'm answering 1.5-years-old question, but people may want to know...)



来源:https://stackoverflow.com/questions/9330382/what-are-the-default-maximum-ram-allotments-for-a-silverlight-4-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!