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

前端 未结 1 1022
没有蜡笔的小新
没有蜡笔的小新 2021-01-14 23:04

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 de

1条回答
  •  被撕碎了的回忆
    2021-01-14 23:31

    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...)

    0 讨论(0)
提交回复
热议问题