Have I missed something or is this a bug in PyS60 1.4.5 - threads not working with 5th edition devices?
I try to start a new thread and the function in thread.start_new_thread() never gets called. start_new_thread() seems to fail silently.
Below is a simplification, code that demostrates the problem. This works fine with my 3rd edition phones (prints a line every 5 seconds). Could someone try this out in 5800 and see if this is a 5th edition problem or something with N97 only?
---clip----
import e32, thread
running = 1
def lighton():
while running:
print "loop"
e32.ao_sleep(5)
thread.start_new_thread(lighton, ())
---clip----
I can get the code above to work in my N97, with Python 1.9.6. But the project I'm working on cannot be transferred to 1.9/2.0 any time soon as it uses several Python extension libraries.
Any ideas for a workaround? Or hopes for getting bug fixes for 1.4.5 (5th edition support)?
Pertti