I run some of my C # code on Mac with Xamarin Studio and get the following error.
Error :Garbage collector could not allocate 16384 bytes of memory for major heap section.
I tried to set an explicit limit for the managed heap and work with sGen, following this tip:
Avoid messy error reporting in Mono Cryptic
export MONO_GC_PARAMS=max-heap-size=2g mono --gc=sgen MyProgram.exe
But I still have the same problem.
Could you tell me how to fix this?
garbage-collection c # mono xamarin
Emma
source share