PTL logo

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


Hi,

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 __future__.py file with 1 line in IronPython.
with_statement=True

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")
clr.AddReferenceToFile("MPI.dll")
import MPI
argarray = System.Array[str](sys.argv)
argarrayref = clr.Reference[ System.Array[str] ]( argarray )
with MPI.Environment(argarrayref) as mpienv:
        n=100

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

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

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

CLR Exception:
    VerificationException
:

Operation could destabilize the runtime.

Question: how can I fix it? thanks,