My program crash with in a very simple program that involve ao_timer.
I use the menu to send a loop with a timer.
When I start the program, if I do repeatedly menu action, the program crash (in my case : only after I press 10 times the menu).
The loop function is :
The main program is:Code:def Loop_Timer(iTimer): tim = e32.Ao_timer() for i in range(10): print "Timer %d #%d"%(iTimer, i) tim.after(1)
I'm working on a N70 symbian 2nd Ed.Code:global iTimer iTimer = 0 def hld_Loop_Timer(): global iTimer iTimer += 1 Loop_Timer(iTimer) appuifw.app.menu = [(u"Loop Timer", hld_Loop_Timer)] app_lock = e32.Ao_lock()
Has any one a solution ?
Is it a problem specific to N70 ou 2nd Ed ?
PS : I had to do this program to identify a critical issue I have in a real application i wrote.

Reply With Quote

