If you remove IronPython from the app and do the same thing, do you still get the error? I've never seen that error before. On Mar 13, 2012 6:21 PM, "surangika ranathunga" <lady_ra...@yahoo.com> wrote:
> Hi All, > I am using Ironpython (2.7) to call a python script from my C# console > application. The code executes fine. But when I try to terminate the > console by clicking 'X' , I get the below error message: > --------------------------- > Intel(r) Visual Fortran run-time error > --------------------------- > forrtl: error (200): program aborting due to window-CLOSE event > > Image PC Routine Line > Source > linalg.DLL 0B17D91A Unknown Unknown Unknown > linalg.DLL 0B17B0F8 Unknown Unknown Unknown > linalg.DLL 0B166B04 Unknown Unknown Unknown > linalg.DLL 0B16C608 Unknown Unknown Unknown > KERNEL32.dll 7C87655C Unknown Unknown Unknown > KERNEL32.dll 7C80B729 Unknown Unknown Unknown > > --------------------------- > OK > --------------------------- > > This is how I call the python code in my C# file: > private ObjectOperations ops; > private object method; > > var lang = Python.CreateLanguageSetup(null); > lang.Options["Frames"] = ScriptingRuntimeHelpers.True; > var setup = new ScriptRuntimeSetup(); > setup.LanguageSetups.Add(lang); > var runtime = new ScriptRuntime(setup); > var engine = runtime.GetEngine("py"); > > ScriptScope scope = runtime.CreateScope(); > ops = engine.Operations; > > ScriptSource source = > engine.CreateScriptSourceFromFile("nlp.py"); > source.Execute(scope); > object[] parameters = new object[1]; > object klass = scope.GetVariable("nlp"); > object instance = ops.Invoke(klass); > method = ops.GetMember(instance, "create_classifier"); > object output = ops.Invoke(method); > > What am I doing wrong here? Can somebody help me out? > /Sura > > _______________________________________________ > Ironpython-users mailing list > Ironpython-users@python.org > http://mail.python.org/mailman/listinfo/ironpython-users > >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users