[IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Lepisto, Stephen P
Hello, everyone! I am working on an service manager application that provides embedded python support through a small set of generalized classes: PythonService, PythonSession, and PythonClass. A client application asks the service manager for the PythonService object and then asks the

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Dino Viehland
[mailto:users-boun...@lists.ironpython.com] On Behalf Of Lepisto, Stephen P Sent: Thursday, April 30, 2009 8:26 AM To: users@lists.ironpython.com Subject: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Hello, everyone! I am working on an service manager

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Michael Foord
*Subject:* [IronPython] Question on Multiple Discrete IronPython sessions in a single process Hello, everyone! I am working on an service manager application that provides embedded python support through a small set of generalized classes: PythonService, PythonSession, and PythonClass. A client

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Curt Hagenlocher
On Thu, Apr 30, 2009 at 9:08 AM, Michael Foord fuzzy...@voidspace.org.uk wrote: Is CreateEngine not the correct way to get isolated engines? Yes, but it looks like ImportModule is importing into some kind of shared state. -- Curt Hagenlocher c...@hagenlocher.org

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Dino Viehland
30, 2009 9:08 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino Viehland wrote: You mention CreateEngine but are you also creating multiple runtimes? You're only allowed 1 ScriptEngine of a given type per

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Dino Viehland
To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino Viehland wrote: You mention CreateEngine but are you also creating multiple runtimes? You're only allowed 1 ScriptEngine of a given type per ScriptRuntime

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Michael Foord
:08 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino Viehland wrote: You mention CreateEngine but are you also creating multiple runtimes? You're only allowed 1 ScriptEngine of a given type per ScriptRuntime

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Lepisto, Stephen P
: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Dino Viehland Sent: Thursday, April 30, 2009 9:28 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process And this works for me

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Dino Viehland
, April 30, 2009 9:47 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino Viehland wrote: And this works for me: I just did the equivalent, from *inside* IronPython which may make a difference, with the 'os

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Dino Viehland
...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Lepisto, Stephen P Sent: Thursday, April 30, 2009 10:10 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino, That example you provided

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Lepisto, Stephen P
Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Lepisto, Stephen P Sent: Thursday, April 30, 2009 10:10 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Curt Hagenlocher
...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Lepisto, Stephen P Sent: Thursday, April 30, 2009 10:10 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process Dino

Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process

2009-04-30 Thread Lepisto, Stephen P
, 2009 10:31 AM To: Discussion of IronPython Subject: Re: [IronPython] Question on Multiple Discrete IronPython sessions in a single process If you import by executing the text import modname against the ScriptEngine instead of using the import API, you will avoid this particular incarnation