2

尝试运行 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 中,而在某些其他硬件上则失败并出现此异常。

ps 我看过https://stackoverflow.com/questions/6388410/error-initialising-the-configuration-system-when-creating-tcpclient-in-mono但我已经有一个 machine.config 文件,但我没有使用 mkbundle。

4

1 回答 1

1

问题是我(提前)预编译了不兼容的二进制文件。

于 2012-05-18T12:37:16.060 回答