|
|
User login
Feeds |
Panic -1001: KErrExtendedWithText
|
|||||
| Tue, 2004-11-16 16:45 | |
|
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; } } |
|
Forum posts: 1379
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
Forum posts: 349
Here's the resource file:
{
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;
};
}
};
}
Forum posts: 42
Are you sure the icons you are using in your ressource are correct? (ie, is there all includes needed?)
Tibo
Forum posts: 1379
{
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
Forum posts: 4
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