×

Discussion Board

Results 1 to 9 of 9

Thread: User 11 panic

  1. #1
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    159

    User 11 panic

    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

  2. #2
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: User 11 panic

    So debug that certain code & see at what line it gives USER 11 panic.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: User 11 panic

    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.

  4. #4
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    159

    Re: User 11 panic

    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

  5. #5
    Nokia Developer Champion
    Join Date
    Jun 2008
    Location
    Noida,India
    Posts
    3,956

    Re: User 11 panic

    what happens if you increase the length of buf..

  6. #6
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: User 11 panic

    I would assume that buf is not long enough.

  7. #7
    Regular Contributor
    Join Date
    Jul 2010
    Posts
    159

    Re: User 11 panic

    got it write by increasing the size of buffer by 100

    thanx again as always

  8. #8
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,566

    Re: User 11 panic

    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.

  9. #9
    Nokia Developer Champion
    Join Date
    Jul 2004
    Posts
    2,015

    Re: User 11 panic

    "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.

Similar Threads

  1. Panic USER 11 !!!!!!!!
    By Quest123 in forum Symbian C++
    Replies: 4
    Last Post: 2009-02-11, 05:19
  2. User 11 Panic
    By rohanwaugh in forum Symbian User Interface
    Replies: 4
    Last Post: 2008-12-04, 12:44
  3. User 11 Panic
    By liadalex in forum Symbian C++
    Replies: 1
    Last Post: 2005-02-02, 09:46
  4. User 11 Panic
    By liadalex in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-31, 09:17
  5. user panic 11
    By ebinder in forum Symbian C++
    Replies: 1
    Last Post: 2003-09-26, 14: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
  •