Re: [IronPython] VS 2010 Integrated Shell question

2011-04-14 Thread Markus Schaber
Hi, Lukáš, Yes. I did not try it with VS 2010 myself, but it is documented that way, and it was the same with the 2008 version where I tried the Express edition at home and the professional at work. Grüße, Markus -Ursprüngliche Nachricht- Von: users-boun...@lists.ironpython.com

[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 make a gtk event?

2011-04-14 Thread Martin Matusiak
Yes, that works. But pedantically speaking, is it possible to manufacture an event that would agree on type with the gtk produced ones? I really don't know if this ever comes up but suppose at one point it needs to be interchangeable with a built in event? Martin 2011/4/13 Dino Viehland

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Jeff Hardy
On Wed, Apr 13, 2011 at 11:14 PM, Chad Brockman cha...@slb.com wrote: I see Silverlight 5 now has something besides simple reflection (ICustomTypeProvider) - http://msdn.microsoft.com/en-us/library/gg986857(v=VS.96).aspx#data Will we see an update to Iron*/DLR to support binding to dynamic

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] IronPython for Silverlight 5?

2011-04-14 Thread Dino Viehland
Jeff wrote: On Wed, Apr 13, 2011 at 11:14 PM, Chad Brockman cha...@slb.com wrote: I see Silverlight 5 now has something besides simple reflection (ICustomTypeProvider) - http://msdn.microsoft.com/en-us/library/gg986857(v=VS.96).aspx#data Will we see an update to Iron*/DLR to support

Re: [IronPython] How to make a gtk event?

2011-04-14 Thread Dino Viehland
Unless GTK has some event class of its own my guess is the answer is no. But if it doesn't have an event class of its own then it probably doesn't matter as I'd think it would never consume your events - only other Python code would. -Original Message- From: Martin Matusiak

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Keith Rome
After looking into what it takes to implement ICustomTypeProvider it seems like it would be a nightmare for dynamic object support. You have to produce actual custom Type instances, presumably using TypeBuilder and emitting IL opcodes to handle the getter/setter accessors. If the databinding

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Tomas Matousek
Couldn't you just subclass Type? It's methods are virtual and can be overridden. I don't think you need to emit a real RuntimeType. Tomas -Original Message- From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Keith Rome Sent: Thursday,

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Keith Rome
The docs for System.Type claims that you cannot subclass from it in Silverlight. Is this being relaxed in v5? Keith Rome Senior Consultant and Architect MCPD-EAD, MCSD, MCDBA, MCTS-WPF, MCTS-TFS, MCTS-WSS Wintellect | 770.617.4016 | kr...@wintellect.com www.wintellect.com On Apr 14, 2011, at

Re: [IronPython] IronPython for Silverlight 5?

2011-04-14 Thread Tomas Matousek
I think this should be possible in SL4 already: public abstract class Type : MemberInfo, _Type, IReflect { [SecuritySafeCritical] internal protected Type(); } There seems to be nothing that would prevent from doing so. Tomas -Original Message- From:

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

2011-04-14 Thread surangika ranathunga
Hi, Below is the exception I receive: here, D:\PhD Work\Research\libomv\test\MonitorService\MonitorService\ExpectationMonitor.cs:line 88 refers to source.Execute(scope); in the below given code. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an