[IronPython] Announcing IronPython 2.0 Beta 2

Andy.Tao taozuhong at qq.com
Sat May 3 08:39:30 CEST 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://mail.python.org/pipermail/ironpython-users/attachments/20080503/3ceca300/attachment.html>
-------------- 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://mail.python.org/pipermail/ironpython-users/attachments/20080503/3ceca300/attachment.obj>


More information about the Ironpython-users mailing list