Mono 2.10.5 Runtime error on Ubuntu 11.10

Posted by johnluetke on Stack Overflow See other posts from Stack Overflow or by johnluetke
Published on 2011-11-29T01:08:34Z Indexed on 2011/11/29 1:50 UTC
Read the original article Hit count: 196

Filed under:
|

I've install mono-runtime via apt in order to run my Mono console application on Ubuntu via SSH. However, when I run the command mono myapp.exe, It exits, with no message, and my program does nothing.

If I throw the -v switch to Mono, such as mono -v myapp.exe, I get about 10k lines of output (as expected, -v is verbose), with the first few lines being:

converting method System.OutOfMemoryException:.ctor (string)
Method System.OutOfMemoryException:.ctor (string) emitted at 0xb7052c28 to 0xb7052c4b (code length 35) [myapp.exe]
converting method (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object     (object,intptr,intptr,intptr)
Method (wrapper runtime-invoke) <Module>:runtime_invoke_void__this___object (object,intptr,intptr,intptr) emitted at 0xb7052c68 to 0xb7052cf6 (code length 142)     [myapp.exe]
converting method System.SystemException:.ctor (string)

I read this as the runtime throwing an OutOfMemory exception, but the machine is under no intense load, has plenty of available RAM, and is running nothing other that system processes.

I've removed and reinstalled Mono countless times, and have even run the executable on other machines perfectly fine.

Am I missing something completely obvious here?

© Stack Overflow or respective owner

Related posts about ubuntu

Related posts about mono