Hi,

I recently encountered a problem when creating timers.

It seems that creating a timer with a floating point interval or delay
throws an exception:



>>> def _callback(n): pass

...

>>> timer = System.Threading.Timer(_callback, None, 100, 0) # Works fine

>>> timer = System.Threading.Timer(_callback, None, 100.1, 0) # Throws
exception

Traceback (most recent call last):

  File "<stdin>", line 1, in <module>

TypeError: expected TimerCallback, got function



How can I solve this?

Thanks.
_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to