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

2009-04-30 Thread Lepisto, Stephen P
0, 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 " against the ScriptEngine instead of using the import API, you will avoid this particular incarnation

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

2009-04-30 Thread Curt Hagenlocher
t; > Thanks for reporting this - this is a very bad bug. > > > -Original 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:

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

2009-04-30 Thread Lepisto, Stephen P
} > } > } > > Foo.py: > print 'hello' > > Printing out: > > hello > hello > no foo > > > -----Original Message- > > From: users-boun...@lists.ironpython.com [mailto:users- > > boun...@lists.ironpython.com] On Be

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

2009-04-30 Thread Dino Viehland
s-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 Dino Viehland
rd > Sent: Thursday, 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,

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 Michael Foord
} } Foo.py: print 'hello' Printing out: hello hello no foo -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Michael Foord Sent: Thursday, April 30, 2009 9:08 AM To: Discussion of IronPython Subject:

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

2009-04-30 Thread Dino Viehland
ironpython.com] On Behalf Of Michael Foord > Sent: Thursday, April 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 CreateEn

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

2009-04-30 Thread Dino Viehland
l Foord > Sent: Thursday, April 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

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 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 ___ Users mai

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

2009-04-30 Thread Michael Foord
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. So you should create a new ScriptRuntime and then get the Python engine for each runtime and then be isolated. If you call Pytho

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

2009-04-30 Thread Dino Viehland
You mention CreateEngine but are you also creating multiple runtimes? You're only allowed 1 ScriptEngine of a given type per ScriptRuntime. So you should create a new ScriptRuntime and then get the Python engine for each runtime and then be isolated. From: users-boun...@lists.ironpython.com