Panic -1001: KErrExtendedWithText

Login to reply to this topic.
Tue, 2004-11-16 16:45
Joined: 2004-09-06
Forum posts: 349
What does the panic KErrExtendedWithText mean?
Code:
if (show) {
if (!iWaitNote)
iWaitNote = new (ELeave) CAknWaitDialog(REINTERPRET_CAST(CEikDialog**, &iWaitNote));

TBuf<64> bufConnecting;
CCoeEnv::Static()->ReadResource(bufConnecting, aResourceId);
   iWaitNote->PrepareLC(R_WAIT_NOTEBT);  //Here I get -1000 panic. Why?
iWaitNote->SetTextL(bufConnecting);
   iWaitNote->RunLD();
} else {
if (iWaitNote) {
iWaitNote->ProcessFinishedL();
iWaitNote = NULL;
}
}

Tue, 2004-11-16 16:54
Joined: 2004-07-28
Forum posts: 1379
Panic -1001: KErrExtendedWithText
Put the resource up.

Also, you don't need to do:

iWaitNote->PrepareLC(R_WAIT_NOTEBT);  //Here I get -1000 panic. Why?
     iWaitNote->SetTextL(bufConnecting);
   iWaitNote->RunLD()

iWaitNote->SetTextL(bufConnecting);
iWaitNote->ExecuteLD(R_WAIT_NOTEBT);  

Will do.

didster

Tue, 2004-11-16 19:15
Joined: 2004-09-06
Forum posts: 349
Panic -1001: KErrExtendedWithText
Thanks didster,

Here's the resource file:

Code:
RESOURCE DIALOG r_wait_notebt
   {
   flags = EAknProgressNoteFlags;
   buttons = R_AVKON_SOFTKEYS_CANCEL;
   items =
       {
       DLG_LINE
           {
           type = EAknCtNote;
           id = EAknExNoteCtrlIdProgressNote;
           control = AVKON_NOTE
               {
               layout = EProgressLayout;
               singular_label = qtn_aknexnote_progress_singular;
               plural_label = qtn_aknexnote_progress_plural;
               };
           }
       };
   }
Wed, 2005-03-23 17:10
Joined: 2004-01-16
Forum posts: 42
Panic -1001: KErrExtendedWithText
I don't know why, but when I have the same error (-1001), it is caused by a missing icon.
Are you sure the icons you are using in your ressource are correct? (ie, is there all includes needed?)

Tibo

Thu, 2005-03-24 09:50
Joined: 2004-07-28
Forum posts: 1379
Panic -1001: KErrExtendedWithText
Try this:

Code:
RESOURCE DIALOG r_wait_notebt
   {
   flags = EAknWaitNoteFlags;
   buttons = R_AVKON_SOFTKEYS_CANCEL;
   items =
       {
       DLG_LINE
           {
           type = EAknCtNote;
           id = EAknExNoteCtrlIdProgressNote;
           control = AVKON_NOTE
               {
singular_label = "Wait";
               layout = EWaitLayout;
animation = R_QGN_GRAF_WAIT_BAR_ANIM;
imagefile = AVKON_BMPFILE_NAME;
imageid = EMbmAvkonQgn_note_bt;
imagemask = EMbmAvkonQgn_note_bt_mask;
               };
           }
       };
   }


You must #include <avkon.mbg> and #include <avkon.rh> and #include <avkon.rsg>.  And also put:

#define AVKON_BMPFILE_NAME "z:\\system\\data\\avkon.mbm"

at the start of your RSS file.

didster

Tue, 2006-02-14 23:46
Joined: 2006-02-07
Forum posts: 4
S60 3rd ed: avkon.mbm changed to avkon2.mbm
Also, if you're programming for Series 60 3rd edition, avkon.mbm was replaced by avkon2.mbm and moved to a different location (and the SDK forgot to mention this and still provides erroneous location).

Old entry:
               imagefile = "z:\\system\data\avkon.mbm";

New entry:
               imagefile = "z:\\resource\apps\avkon2.mbm";


cost me a few hours, hope someone else is luckier than I Wink.
  • Login to reply to this topic.