小编Emm*_*mma的帖子

垃圾收集器无法为主堆部分分配16384字节的内存

我在Mac上运行了一些带有Xamarin Studio的C#代码并收到以下错误.

Error :Garbage collector could not allocate 16384 bytes of memory for major heap section.
Run Code Online (Sandbox Code Playgroud)

我已经尝试在托管堆上设置显式限制并按照以下建议运行sGen:
避免Mono Cryptic GC错误消息

export MONO_GC_PARAMS=max-heap-size=2g
mono --gc=sgen MyProgram.exe
Run Code Online (Sandbox Code Playgroud)

但我仍然有同样的问题.
你能告诉我怎么解决这个问题吗?

c# mono garbage-collection xamarin

9
推荐指数
1
解决办法
2265
查看次数

标签 统计

c# ×1

garbage-collection ×1

mono ×1

xamarin ×1