I installed Mono on an Ubuntu server and "Hello World" works, but a simplified application that processes and processes some arrays without problems in Mono on OSX or Windows gives:
System.OutOfMemoryException: Out of memory. at (wrapper alloc) object:AllocVector (intptr,intptr)
It should not contain more than a few MB of memory. The server has 4 GB of RAM.
Running again in the alloc profile gives another exception:
System.OverflowException: Number overflow. at (wrapper managed-to-native) object:__icall_wrapper_mono_array_new_specific (intptr,int)
The problem is incompatible, sometimes the code runs once, but not the second time. Sometimes this does not work the first time. Sometimes he fails in a different way, but for the same reason.
The program and full output can be downloaded from http://dev.intelorca.co.uk/2014/gacj_allocproblem.zip It would be nice to see if anyone has problems running the program under mono and can give any idea of ββthe problem . Any pointers to configuring Mono will also be useful to work better on Ubuntu.
The program should output "Cambridge Surprise Major" 128 times.
IntelOrca
source share