Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User hitonly2008's Avatar
    Join Date
    Jun 2008
    Location
    Pune, India
    Posts
    18
    Hi all

    In a certain condition I have to terminate the program. But when I tried to exit By calling CEikAppUi::Exit().The Program does not exit. So before calling CEikAppUi::Exit() I have to call CActiveScheduler::Stop(); But this call gives a panic Cone-5.

    here is the code snippet for the same
    CActiveScheduler::Stop(); //Cone-5 at this line
    CEikAppUi::Exit();

    The same code is working fine in all the s60 3rd edition and 3rd edition fp1 devices but it is giving panic on S60 2nd edition phones. I have tried on 6630.

    Has anyone solution for this problem.
    Thanks in advance

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You can simply search for CONE 5 in the SDK Help - though it will not really help.
    Quote Originally Posted by hitonly2008 View Post
    But when I tried to exit By calling CEikAppUi::Exit().The Program does not exit.
    You should fix the code. Make sure that all of your active objects are cancelled.
    So before calling CEikAppUi::Exit() I have to call CActiveScheduler::Stop();
    You should not do that. Remember that ordinary applications can exit without shutting down the scheduler manually, thus you should assume that it is getting shutted down somewhere in the framework, after you invoke AppUi::Exit. However if you stop it manually, the framework will still try stop it for itself, since it does not expect that you have already stopped it. And that is a problem
    Quote Originally Posted by SDK Help
    5 Environment caught unexpected leave
    Instead of hacking the framework, it would be better fixing your code.

Similar Threads

  1. CONE 44 error exiting the application
    By yaney in forum Symbian C++
    Replies: 2
    Last Post: 2010-07-14, 08:21
  2. problem in exiting from the program
    By hitonly2008 in forum Symbian C++
    Replies: 7
    Last Post: 2008-09-16, 20:41
  3. CONE 8.....while exiting from the application
    By pawan_G in forum Symbian Media (Closed)
    Replies: 8
    Last Post: 2008-07-29, 18:21
  4. Help program exiting abruptly
    By gigglie in forum Symbian C++
    Replies: 1
    Last Post: 2008-03-15, 12:30
  5. Access Violation in Exiting Program
    By lkjfdsa in forum Symbian C++
    Replies: 2
    Last Post: 2002-08-22, 07:53

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