| Reply | « Previous Thread | Next Thread » |
|
I've rolled a native Python app, but I have to press 'exit' twice to close it. Pressing it once turns the screen completely white.
|
| bercobeute |
| View Public Profile |
| Find all posts by bercobeute |
|
Quote:
Steve |
| slitchfield |
| View Public Profile |
| Find all posts by slitchfield |
|
It should because the first time, you execute the code in your app exit handler function, in which you reset the exit handler back to the old one. And the old exit handler is actually the exit function of python itself (and that's what you call at the second exit). Last time i saw this kind of bug was because i had an error in the code dealing with the exit of the application (like in close or __del__).
|
|
Quote:
Pimol |
|
Thanks all for the replies. It turned out that the problem had to do with case sensitivity
![]() See below: the abort() is called from within the application when exiting. In my previous version of the method set_exit_if_standalone() (taken somewhere else from this forum) the method didn't check for case sensitivity of the application name. Unfortunately the application name can differ in casing... The code below works fine. Code:
def loop( self ):
try:
while not self.exit_flag:
self.lock.wait()
finally:
pass
def abort( self ):
self.exit_flag = True
self.lock.signal()
self.set_exit_if_standalone()
def set_exit_if_standalone(self):
appname = appuifw.app.full_name().lower()
if appname[-10:] != u"Python.app".lower():
appuifw.app.set_exit()
|
| bercobeute |
| View Public Profile |
| Find all posts by bercobeute |
| Reply | « Previous Thread | Next Thread » |
| Thread Tools | Search this Thread |
|---|---|
| Rate This Thread | |
| Thread | Thread Starter | Forum | Replies | Last Post |
|---|---|---|---|---|
| N70 Reset bug | sebboB | General Discussion | 2 | 2005-12-29 00:09 |
| Standalone App Exit? | maym | Python | 2 | 2005-08-09 01:58 |
| Invoking Midlet by a Native app.? | ronga | Mobile Java General | 0 | 2005-05-09 20:42 |
| Invoking Midlet by a Native app.? | ronga | General Symbian C++ | 0 | 2005-05-09 20:38 |
| Communication with native Symbian app on Nokia 7650 | LiamQ | Mobile Java General | 1 | 2002-08-01 13:56 |