[IronPython] 2.0 beta3: with statement: SystemError: Operation could destabilize the runtime.

Dino Viehland dinov at exchange.microsoft.com
Wed Jul 2 19:02:18 CEST 2008


-X:ExceptionDetail is usually much more useful - we should probably just kill -X:ShowClrExceptions :).

From: users-bounces at lists.ironpython.com [mailto:users-bounces at lists.ironpython.com] On Behalf Of Curt Hagenlocher
Sent: Wednesday, July 02, 2008 9:58 AM
To: Discussion of IronPython
Subject: Re: [IronPython] 2.0 beta3: with statement: SystemError: Operation could destabilize the runtime.

That exception isn't coming from IronPython -- not directly, anyway.  Can you re-run with the -X:ShowClrExceptions flag?

Have you done anything to force IronPython to run as a 32-bit app or is it running as a 64-bit app (ie natively)?  Is MPI.NET<http://MPI.NET> built against CLR 2.0?
On Wed, Jul 2, 2008 at 9:49 AM, Liwei Peng <liwei.peng at gmail.com<mailto:liwei.peng at gmail.com>> wrote:
Hi,

I used IronPython 2.0 Beta3 using the with statement. I got the following error:

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

What I did:
1) create a __future__.py file with 1 line:
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
Question: how can I fix it? thanks,

Liwei

_______________________________________________
Users mailing list
Users at lists.ironpython.com<mailto:Users at lists.ironpython.com>
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20080702/0f9da14e/attachment.html>


More information about the Ironpython-users mailing list