PTL logo

From: Liwei Peng (liwei.peng_at_[hidden])
Date: 2008-07-02 13:44:54


Can you help me for a "CLR VerificationException" when using MPI.Net 0.9
under IronPython (2.0 Beta3)? My OS is W2K8 x64 server.

The following is what I did:

 1) create a file with 1 line in IronPython.

2) run the following script. the error occured in the line "with
MPI.Environment(argarrayref) as mpienv:"

from __future__ import with_statement
import sys
import clr
import System
sys.path.append("C:\Program Files (x86)\MPI.NET\Lib")
import MPI
argarray = System.Array[str](sys.argv)
argarrayref = clr.Reference[ System.Array[str] ]( argarray )
with MPI.Environment(argarrayref) as mpienv:

3) when I ran the above script, I got:

d:\tools\IronPython-2.0B3>ipy.exe -X:ShowClrExceptions

Traceback (most recent call last):
  File "", line 17, in
SystemError: Operation could destabilize the runtime.

CLR Exception:

Operation could destabilize the runtime.

Question: how can I fix it? thanks,