Thanks for the help. The following is what I got: d:\tools\IronPython-2.0B3>ipy.exe -X:ExceptionDetail a.py Operation could destabilize the runtime. at _stub_$36##33(Closure , CallSite , CodeContext , Object , Object ) at _stub_MatchCaller(Object , CallSite , Object[] ) at Microsoft.Scripting.Actions.CallSite`1.UpdateAndExecute(Object[] args) at Microsoft.Scripting.Actions.UpdateDelegates.Update3[T,T0,T1,T2,TRet](CallSite site , T0 arg0, T1 arg1, T2 arg2) at S$2.Initialize(CodeContext ) at IronPython.Hosting.PythonCommandLine.RunFileWorker(String fileName) at IronPython.Hosting.PythonCommandLine.RunFile(String fileName) SystemError: Operation could destabilize the runtime.
Liwei On Wed, Jul 2, 2008 at 11:20 AM, Curt Hagenlocher <[EMAIL PROTECTED]> wrote: > I'm sorry -- Dino's right, I should have said "-X:ExceptionDetail". Could > you run again with that? > > On Wed, Jul 2, 2008 at 10:36 AM, Liwei Peng <[EMAIL PROTECTED]> > wrote: > >> Thanks for the help. The following are more details: >> >> >> 1) 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. >> >> 2) I didn't do anything at force IronPython to run as a 32-bit app or >> 64-bit app. >> My OS is x64 W2K8 server. ipy.exe is a 32-bit binary. >> 3) MPI.net is built from CLR 2.0. >> >> thanks, >> >> Liwei >> >> On Wed, Jul 2, 2008 at 9:57 AM, Curt Hagenlocher <[EMAIL PROTECTED]> >> wrote: >> >>> 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 <[EMAIL PROTECTED]> >>> 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 >>>> [email protected] >>>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>>> >>>> >>> >>> _______________________________________________ >>> Users mailing list >>> [email protected] >>> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >>> >>> >> >> _______________________________________________ >> Users mailing list >> [email protected] >> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com >> >> > > _______________________________________________ > Users mailing list > [email protected] > http://lists.ironpython.com/listinfo.cgi/users-ironpython.com > >
_______________________________________________ Users mailing list [email protected] http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
