Hello.
This code:
produces the expected output, but if I turn on the "crash monitor" in DrJukka.com's y-tasks v 0.51 I get the following error message:Code:import thread import e32 class Downloader(object): def __init__(self): self._completed = False def start(self): thread.start_new_thread(self.run, ()) def run(self): # waste some time.. for i in range(1000):j = i*i/10.0 self._completed = True def completed(self): return self._completed d = Downloader() d.start() counter=0 while d.completed() == False: print unicode(counter) counter+=1 e32.ao_sleep(0.01) print u'done'
"Py_{number}
Terminate: 0", where {number} changes every time and seems to indicate the thread ID.
(in the y-tasks detailed info it tells me "exit category: terminate, exit type: terminate")
I tried this on an E51.
Is this normal, or am I doing something wrong?
Why is the thread termination handled in a way that is recognized by y-tasks as a crash? Is it an issue with my code, with y-tasks, or with pys60?
Thanks,
Enrico

Reply With Quote


