hi,
my apllicaion works fine on s60v5( NOKIA N97) but when i run it on s60v3(NOKIA N73) then after certain code it exists with user panic 11. plzzzz help, wat to do
hi,
my apllicaion works fine on s60v5( NOKIA N97) but when i run it on s60v3(NOKIA N73) then after certain code it exists with user panic 11. plzzzz help, wat to do
So debug that certain code & see at what line it gives USER 11 panic.
Do Remember to Search for your query on Google/Forum Wiki& DiBo , it really saves your time & You get your queries answered(in most of the cases) before posting them on Dibo itself. :)
USER 11 is documented in the SDK Help, it is about descriptors and their size.
A thing which is worth mentioning is that your application should be built with the S60 3rd MR SDK when you are planning to run it on the N73.
yp i m using s60 sdk to compile the application.
code is crashing at a bold line in the below code. i wonder why it works fine on s60v5 and not in s60v3
TBuf<50>buf;
_LIT(hello,"Du Circle");
TBuf<KMessageBodySize> body;
body.Copy(hello);
CContactDatabase* contactsDb = CContactDatabase::OpenL();
CleanupStack::PushL(contactsDb);
CCntFilter *filter = CCntFilter::NewLC();
//get all contact items (no groups, templates...)
filter->SetContactFilterTypeALL(EFalse);
filter->SetContactFilterTypeCard(ETrue);
contactsDb->FilterDatabaseL(*filter);
if(iContacts)
{
delete iContacts;
iContacts = NULL;
}
iContacts = CContactIdArray::NewL(filter->iIds);
// iIdArray->Append(0);
//iIdArray->Append(1);
for (int i=0; i<(*iContacts).Count();i++)
{
contactsDb->ReadContactTextDefL((*iContacts)[i], buf);
//iIdArray->Append((*iContacts)[i]);
// iIdArray->Append(i);
//arrayMsgBody->AppendL ( body );
//arrayAddr->AppendL ( buf );
}
CleanupStack::PopAndDestroy(2); //filter, contactsDb
what happens if you increase the length of buf..
Do Remember to Search for your query on Google/Forum Wiki& DiBo , it really saves your time & You get your queries answered(in most of the cases) before posting them on Dibo itself. :)
I would assume that buf is not long enough.
got it write by increasing the size of buffer by 100
thanx again as always![]()
Note that this fix is not a stable one, it would be better to find a way for getting the required size, and allocate a HBufC or RBuf.
"i wonder why it works fine on s60v5 and not in s60v3"
Is the contacts database and all its contacts within that database that you are reading absolutely identical on both devices?
If not then its a meaningless question. If yes then I can't think of any reason why it should differ.
Descriptor conversion reference: http://discussion.forum.nokia.com/fo...reference-post