Discussion Board

Results 1 to 6 of 6
  1. #1
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    Hi,

    I have a running standalone (ensymbled) app on the phone. I switch to some othe app (e.g. fexplorer), then I come back to my app. When I try to exit I get the mentioned panic.
    I test this issue on a really simple app now, like
    Code:
    import appuifw, e32
    def exit_key_handler():
        app_lock.signal()
    appuifw.app.exit_key_handler = exit_key_handler
    appuifw.app.title = u'whatever'
    appuifw.app.body = appuifw.Text()
    app_lock = e32.Ao_lock()
    app_lock.wait()
    appuifw.app.set_exit()
    My guess it has something to do with background / foreground switching, but I don't event know if there is some callback informing my app of the switch event?

    Thanks very much for any possible interest
    whatever happens happens

  2. #2
    Nokia Developer Moderator croozeus's Avatar
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,635
    Hello janekw

    I cant get the type of app u r building,I mean the utilty.Is is for an exit handler? or for back/fore switching...

    Please specify...

    -Pankaj Nathani

  3. #3
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    I don't get you... What my app does is meaningless, my point is such fairly standard code causes panic when you come back to the app from whatever another app on the phone and when you exit yours. At least when it's a standalone - 'sised' with 'ensymble' utility, like in http://wiki.forum.nokia.com/index.ph...e_Applications
    whatever happens happens

  4. #4
    Regular Contributor otsov's Avatar
    Join Date
    Sep 2003
    Location
    Finland
    Posts
    209
    Quote Originally Posted by janekw_ View Post
    Hi,

    I have a running standalone (ensymbled) app on the phone. I switch to some othe app (e.g. fexplorer), then I come back to my app. When I try to exit I get the mentioned panic.
    You stumbled into a bug - Please report this to the SourceForge site of PyS60.

    Based on this:

    http://discussion.forum.nokia.com/fo...p/t-21240.html

    Adding these magical lines:

    Code:
      PrepareToExit();
      DeactivateActiveViewL();
    to the "CAmarettoAppUi:oExit()" method in file "Python_appui.cpp" seems to solve the problem at least in emulator (before the "finalizeappuifw" call).

    Thanks for your detailed report.

  5. #5
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    To tell the truth I didn't notice it on the emulator, but I'll take your word for it, submit the bug to SF and let god (jplauril) sort'em out.
    whatever happens happens

  6. #6
    Regular Contributor janekw_'s Avatar
    Join Date
    Apr 2007
    Location
    Lublin, Poland
    Posts
    81
    Otsov, your solution works also on the device, I can confirm it.
    whatever happens happens

Similar Threads

  1. Panic: ViewSrv 9
    By Dkr in forum Symbian C++
    Replies: 5
    Last Post: 2010-12-01, 08:55
  2. ViewSrv 11 panic : when menu button of 7650 is pressed on an active app
    By nitinkumar in forum Symbian User Interface
    Replies: 6
    Last Post: 2008-12-09, 19:20
  3. Using Bluetooth serial port in MIDlets (nokia 9500 issue)
    By orsteglasy in forum Mobile Java Networking & Messaging & Security
    Replies: 11
    Last Post: 2007-10-07, 21:49
  4. S60 panic box, ViewSrv 11
    By Stengun in forum Mobile Java General
    Replies: 5
    Last Post: 2004-04-26, 21:34
  5. Replies: 2
    Last Post: 2004-02-05, 12:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved