I run script in emulator without any problems, I exit script without any problems, but when I exit python shell there's "Python CONE 8" error. The only script which I ran was my own, so there MUST be something wrong with it.
There's no error notes after running the script. Trace doesn't show anything suspicious. Everything is juuuuuust fine - until I exit python shell.
How to debug this kind of error?
There was earlier also "system error (-50)", but it disappeared. That means "Exception in UI callback" and CONE 8 most likely means "Environment found window server resources had not been freed". That suggests that I created something related to appuifw and it wasn't ever deleted or released.
What kind of cleanup I have to do myself? This sample is basically what I did, should I somehow delete myText? Should I delete m object? There are no tabs, no views, no icons, no listbox, no canvas - nothing but one appuifw.Text() and few writings on it.
This sample gives same CONE 8 error, here's how to use:
1) Start python shell
2) Run this script
3) Exit script
4) Exit pythin shell
Btw using S60 3rd Edition SDK MR with Python 1.4.2.
appuifw.app.screen = 'normal'
appuifw.app.title = u'Test'
appuifw.app.exit_key_handler = self.cb_quit
appuifw.app.menu = [
self.myText = appuifw.Text()
self.myText.font = u"title"
self.myText.style = (appuifw.STYLE_BOLD | appuifw.STYLE_UNDERLINE)
self.myText.font = u"normal"
self.myText.style = 0
self.print_status(u"Press Select key to start:")
appuifw.app.body = self.myText
self.myText.bind(key_codes.EKeyEnter, lambda: self.sample())
self.myText.bind(key_codes.EKeySelect, lambda: self.sample())
def print_status(self, aString):
e32.ao_sleep(0.1) # Give time to update screen
m = Main()
app_lock = e32.Ao_lock()