hey thx for the answer but i checked again and everything works
,, maybe it was a problem i had while writing the code and testing but it seems now.
or maybe i think its happening if error occur and i call my harness() function, then signal is being called.
like i do
Code:
try:
something()
except:
harness()
my harness didnt signal applock, i now did applock as global None
and harness will check if its setted and signal it.
Code:
def harness():
global applock
import sys
import traceback
import e32
import appuifw
if applock!=None:
applock.signal()
appuifw.app.screen='normal'
appuifw.app.focus=None
appuifw.app.title=u'Error occured'
body=appuifw.app.body=appuifw.Text()
def tab(idx):
if idx==0:
appuifw.app.body=body;
elif idx==1:
appuifw.app.body=txtLog;
appuifw.app.set_tabs([u"Error",u"Log"],tab)
harnesslock=e32.Ao_lock()
def quit():
harnesslock.signal()
appuifw.app.exit_key_handler=quit
appuifw.app.menu=[(u'Exit', quit)]
body.set(unicode('\n'.join(traceback.format_exception(*sys.exc_info()))))
harnesslock.wait()
appuifw.app.set_exit()
i'll check it now.
--edit--
It works now after added applock.signal() in harness()