[IronPython] Threading support in Silverlight
Jimmy.Schementi at microsoft.com
Wed Apr 30 02:53:31 CEST 2008
You can use System::DispatchTimer to have the timer events to fire on the same thread.
Also, if your initParams source parameter looks something like this:
<params name="source" value="debug=true; reportErrors=errorLocation" />
Then you should see error messages.
> -----Original Message-----
> From: users-bounces at lists.ironpython.com [mailto:users-
> bounces at lists.ironpython.com] On Behalf Of Dan Eloff
> Sent: Tuesday, April 29, 2008 5:22 PM
> To: Discussion of IronPython
> Subject: Re: [IronPython] Threading support in Silverlight
> Sorry, false alarm.
> The timer was firing, but the function I was using to test it
> contained a print statement, stdout was being redirected to a UI
> control, and I guess the timer callback gets invoked in a seperate
> thread, so manipulating the UI is illegal. I suspect there is some
> error happening somewhere, but it just fails silently.
> Sorry again, my mistake.
> On Tue, Apr 29, 2008 at 7:04 PM, Dan Eloff <dan.eloff at gmail.com> wrote:
> > Hi,
> > I notice that threading.Timer does not work in Silverlight, is this
> > known issue? (it never triggers, but doesn't raise any errors
> > What is the state on other threading.py objects? Lock() seems to
> > fine, but I haven't put it through fire.
> > Thanks,
> > -Dan
> Users mailing list
> Users at lists.ironpython.com
More information about the Ironpython-users