[IronPython] Announcing IronPython 2.0 Beta 2

Andy.Tao taozuhong at qq.com
Fri May 2 23:39:30 PDT 2008


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);
    }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080503/3ceca300/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IronPython_2.0B2.JPG
Type: application/octet-stream
Size: 33306 bytes
Desc: not available
URL: <http://lists.ironpython.com/pipermail/users-ironpython.com/attachments/20080503/3ceca300/attachment-0001.obj>


More information about the Users mailing list