×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2008
    Posts
    26

    CAknGlobalNote + custom CBA -> CONE 14 panic

    Hi!

    I'm trying to use a global note together with custom special buttons strings, however whatever I try, all I get is with CONE 14 panic. I haven't yet tried with the phone, the problem appears with S60 3rd MR simulator.

    I create the CAknGlobalNote instance this way:
    Code:
    iNote = CAknGlobalNote::NewL();
    iNote->SetTone(EAknNoteDialogNoTone);
    iNote->SetSoftkeys(R_NEW_CONTENT_POPUP_BUTTONS);
    If I replace R_NEW_CONTENT_POPUP_BUTTONS with any of R_AVKON_SOFTKEYS_... resource, everything works as expected. My resource is defined like this:

    Code:
    RESOURCE CBA r_new_content_popup_buttons
    {
    	buttons = {
    		AVKON_CBA_BUTTON {
    		  id = EAknSoftkeyOk; 
    		  txt = S_NEW_CONTENT_POPUP_SHOW;
    		},
    		AVKON_CBA_BUTTON {
    		  id = EAknSoftkeyCancel; 
    		  txt = S_NEW_CONTENT_POPUP_CANCEL;
    		}
    	};
    }
    What makes the whole thing more interesting is the fact, that the following piece of code seems to load my resource perfectly. I've tried to look at the memory dump at 'a', and it looks perfectly valid (I've compared to R_AVKON_SOFTKEYS_... that work fine)!
    Code:
    TResourceReader reader;
    CCoeEnv::Static()->CreateResourceReaderLC(reader, R_NEW_CONTENT_POPUP_BUTTONS);
    void *a = const_cast<void*>(reader.Ptr());
    CleanupStack::PopAndDestroy();
    1. Any idea what am I doing wrong?

    2. Are the "avkon global note" objects the only way to display a dialog regardless of what application is in the foreground? Is it possible to display a generic form or dialog in a "global" mode?

    BR,
    Przemek

  2. #2
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: CAknGlobalNote + custom CBA -> CONE 14 panic

    Global notes run in a separate process and hence they can't access your application's resources, that is the reason you are getting CONE 14. See this thread for Wizard's answer.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

  3. #3
    Registered User
    Join Date
    Sep 2008
    Posts
    26

    Re: CAknGlobalNote + custom CBA -> CONE 14 panic

    Quote Originally Posted by ssn.kishore View Post
    Global notes run in a separate process and hence they can't access your application's resources, that is the reason you are getting CONE 14. See this thread for Wizard's answer.
    Yeah, I just realized that myself, looking at the stack trace - it is AknCapServer that panics, and not my thread, that explains everything. What a pity that I can't load the resource inside my task and pass it to the AknCapServer...

    Thanks!

  4. #4
    Registered User
    Join Date
    Nov 2008
    Posts
    12

    Question Re: CAknGlobalNote + custom CBA -> CONE 14 panic

    Przemek,

    did u find any solution to this?I am exactly having the same problem,wantto add custom buttons to Global Note but it doesn't work

  5. #5
    Regular Contributor
    Join Date
    Feb 2008
    Location
    Pune, India
    Posts
    340

    Re: CAknGlobalNote + custom CBA -> CONE 14 panic

    Buttons cannot be added to a Global Note. Global notes run in a separate process and hence resources of your process are not available to that process which is the reason why you are getting CONE 14 Panic. You'll have to find some other way to achieve what you want.
    Regards,
    Sainagakishore Srikantham (Kishore)

    Don't Hope, KNOW!!! ---------- Visit me at http://ssnkishore.blogspot.com ----------

Similar Threads

  1. CAknErrorNote & CAknAppUi::ConstructL -> CONE 8 panic on exit
    By heuven in forum Symbian User Interface
    Replies: 2
    Last Post: 2008-04-09, 16:19
  2. PANIC CONE 8 --> What resources?
    By lazmous in forum Symbian
    Replies: 2
    Last Post: 2004-12-23, 12:28
  3. Has Nokia broken 7650 J2ME in v4.39?
    By LongSteve in forum Mobile Java General
    Replies: 6
    Last Post: 2003-06-03, 17:05
  4. Replies: 5
    Last Post: 2003-02-07, 11:25
  5. 7650 and MS Bluetooth Transceiver
    By damnedi in forum Bluetooth Technology
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×