maybe that is a bug:
the detail as follow: private void btnExecute_Click(object sender, EventArgs e) { try { ScriptRuntimeSetup runtimeSetup = new ScriptRuntimeSetup(true); ScriptRuntime ScriptRuntime = ScriptRuntime.Create(runtimeSetup); ScriptRuntime.GlobalOptions.DebugMode = true; ScriptEngine scriptEngine = ScriptRuntime.GetEngine("py"); scriptEngine.CreateScriptSourceFromString(txtScriptSource.Text).Execute(); // this line will be throw out a exception scriptEngine.CreateScriptSourceFromString(txtScriptSource.Text, SourceCodeKind.Statements).Execute(); //this line OK //m_RemoteScript.ExecuteCode(txtScriptSource.Text); } catch(Exception ee) { MessageBox.Show(ee.Message); } }
<<attachment: IronPython_2.0B2.JPG>>
_______________________________________________ Users mailing list Users@lists.ironpython.com http://lists.ironpython.com/listinfo.cgi/users-ironpython.com