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.

~js

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:users-
> [EMAIL PROTECTED] 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.
>
> -Dan
>
> On Tue, Apr 29, 2008 at 7:04 PM, Dan Eloff <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> >  I notice that threading.Timer does not work in Silverlight, is this
> a
> >  known issue? (it never triggers, but doesn't raise any errors
> either)
> >
> >  What is the state on other threading.py objects? Lock() seems to
> work
> >  fine, but I haven't put it through fire.
> >
> >  Thanks,
> >  -Dan
> >
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.ironpython.com/listinfo.cgi/users-ironpython.com
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to