我在尝试运行 Mono 应用程序时遇到以下异常:
Unhandled Exception: [Some exception here -- this part changes] ---> System.ExecutionEngineException: SIGILL
at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor, IHashCodeProvider hcp, IComparer comparer) [0x00000] in <filename unknown>:0
at System.Collections.Hashtable..ctor (Int32 capacity, Single loadFactor) [0x00000] in <filename unknown>:0
at System.Collections.Hashtable..ctor () [0x00000] in <filename unknown>:0
at [other calling locations that change]...
完全相同的系统镜像(字面上)在某些计算机上成功,例如在 VMWare 中,但在其他一些硬件上失败并出现此异常。
附注我看过https://stackoverflow.com/questions/6388410/error-initialising-the-configuration-system-when-creating-tcpclient-in-mono但我已经有一个 machine.config 文件,而且我没有使用 mkbundle。
最佳答案
问题是我预编译(提前)了不兼容的二进制文件。
关于c# - Mono 仅在某些计算机上获得 "System.ExecutionEngineException: SIGILL ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10651888/