PTL logo

From: Ben Martin (benjmart_at_[hidden])
Date: 2008-07-02 15:14:32


I'm not sure why this isn't working. IronPython 2.0 beta 2 and 3 both
give this error, whereas earlier versions did not have this problem.
I'll try to see if I can figure out what the problem is. For now you
should be able to get around the problem by using an older version of
IronPython.

Ben Martin
Open Systems Lab

Liwei Peng wrote:
> 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 <http://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,
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> mpi.net mailing list
> mpi.net_at_[hidden]
> http://www.osl.iu.edu/mailman/listinfo.cgi/mpi.net
>