Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-18 Thread surangika ranathunga
) { Console.WriteLine(e.ToString()); }     --- On Thu, 14/4/11, Jeff Hardy jdha...@gmail.com wrote: From: Jeff Hardy jdha...@gmail.com Subject: Re: [IronPython] how to generate multiple concurrent scriptign engines? To: Discussion of IronPython users@lists.ironpython.com Cc: surangika ranathunga lady_ra

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-15 Thread Dino Viehland
, April 15, 2011 7:29 AM To: surangika ranathunga Cc: Discussion of IronPython Subject: Re: [IronPython] how to generate multiple concurrent scriptign engines? Any chance you can share what the source is? The exception comes from PythonCopyReg's initialization, which means we might have a bug (it might

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-15 Thread Jeff Hardy
--- On *Thu, 14/4/11, Jeff Hardy jdha...@gmail.com* wrote: From: Jeff Hardy jdha...@gmail.com Subject: Re: [IronPython] how to generate multiple concurrent scriptign engines? To: Discussion of IronPython users@lists.ironpython.com Cc: surangika ranathunga lady_ra...@yahoo.com Received: Thursday, 14

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-15 Thread Dino Viehland
Filed as http://ironpython.codeplex.com/workitem/30551 From: Jeff Hardy [mailto:jdha...@gmail.com] Sent: Friday, April 15, 2011 9:41 AM To: Discussion of IronPython Cc: Dino Viehland; surangika ranathunga Subject: Re: [IronPython] how to generate multiple concurrent scriptign engines? Can one

[IronPython] how to generate multiple concurrent scriptign engines?

2011-04-14 Thread surangika ranathunga
Hi, I am using Ironpython to connect to a legacy python code from C#. I am not fully familiar with Ironpython, but managed to get it working for a single-threaded application. This is how I implemented this:     ScriptEngine engine = Python.CreateEngine();    

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-14 Thread Jeff Hardy
As long as you have a ScriptScope per thread, you should be able to share the ScriptEngine Runtime between threads. What is the exception that you are getting? If it's a GUI program, remember that UI elements can only be manipulated from the main thread. - Jeff On Thu, Apr 14, 2011 at 1:02 AM,

Re: [IronPython] how to generate multiple concurrent scriptign engines?

2011-04-14 Thread surangika ranathunga
)    at MonitorService.ExpectationMonitor.Initialize(String rule) in D:\PhD Work\Research\libomv\test\MonitorService\MonitorService\ExpectationMonitor.cs:line 88 --- On Thu, 14/4/11, Jeff Hardy jdha...@gmail.com wrote: From: Jeff Hardy jdha...@gmail.com Subject: Re: [IronPython] how to generate multiple concurrent