Re: [IronPython] Best way to stop script execution?

2009-03-20 Thread Kristian Jaksch
What about if we need access to the HTML DOM (It's a silverlight application) from that thread? During execution of scripts there might be printouts to the DOM. But how can we do that without illegal cross-threading? 2009/3/19 Kristian Jaksch kristian.jak...@gmail.com Thanks for the reply.

Re: [IronPython] Best way to stop script execution?

2009-03-20 Thread Jimmy Schementi
When running in a non-UI thread in Silverlight, you can dispatch back to the UI thread for UI interaction. Every UIElement has a Dispatcher property, so you just need to grab that and call BeginInvoke, passing a delegate. // In some background thread

Re: [IronPython] Best way to stop script execution?

2009-03-20 Thread Kristian Jaksch
Thanks for the reply Jimmy. We'll check it out. 2009/3/20 Jimmy Schementi jimmy.scheme...@microsoft.com When running in a non-UI thread in Silverlight, you can dispatch back to the UI thread for UI interaction. Every UIElement has a “Dispatcher” property, so you just need to grab that and

Re: [IronPython] CP Issue #21659: Subclassing unicode

2009-03-20 Thread Dino Viehland
FYI this is fixed in the 2.6 branch now. -Original Message- From: users-boun...@lists.ironpython.com [mailto:users- boun...@lists.ironpython.com] On Behalf Of Jeff Hardy Sent: Tuesday, March 17, 2009 5:03 PM To: Discussion of IronPython Subject: Re: [IronPython] CP Issue #21659:

[IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-20 Thread Jeff Hardy
Hi all, I'm unable to create a Dynamic assembly from IronPython using AppDomain.DefineDynamicAssembly. The Python file attached results in the following error: Traceback (most recent call last): File pinvoke.py, line 5, in pinvoke.py File mscorlib, line unknown, in DefineDynamicAssembly

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-20 Thread Curt Hagenlocher
I think this is something that broke well before the 2.0 release. To work around it in pyc.py, we added DefineDynamicAssembly to the PythonOps class in IronPython: import clr clr.AddReference('IronPython') from IronPython.Runtime.Operations import PythonOps assemblyBuilder =

Re: [IronPython] Creating Dynamic Assemblies from IronPython 2.6

2009-03-20 Thread Dino Viehland
It's actually a CLR bug - we can't call this method from a dynamic method. We could probably add a workaround and force it to always be called via reflection. From: users-boun...@lists.ironpython.com [mailto:users-boun...@lists.ironpython.com] On Behalf Of Curt Hagenlocher Sent: Friday, March