×

Discussion Board

Results 1 to 5 of 5

Thread: User 11 Panic

  1. #1
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    User 11 Panic

    hi all,

    i am using following code in my application..

    container.h

    TBuf<256> SalesOrderContainer1Buff;

    container.cpp

    TInt indexDealer=iBillToChoiceList->SelectedIndex();
    TPtrC16 selectedDealer = BillToItemArray->operator[](indexDealer);
    TBuf<50> myDescDealer = (TBuf<50>&)selectedDealer;
    SalesOrderContainer1Buff.Append(myDescDealer);
    SalesOrderContainer1Buff.Append('#');


    TInt indexProduct = iProductChoiceList->SelectedIndex();
    TPtrC16 selectedProduct = ProductItemArray->operator[](indexProduct);
    TBuf<50> myDescProduct = (TBuf<50>&)selectedProduct;
    SalesOrderContainer1Buff.Append(myDescProduct);
    SalesOrderContainer1Buff.Append('#');

    And i am getting User 11 panic.What is the reason of this panic??
    Thanks.Regards.

    Rohanwaugh

  2. #2
    Registered User
    Join Date
    Nov 2007
    Posts
    444

    Re: User 11 Panic

    User 11:
    This panic is raised when any operation that moves or copies data to a 16-bit variant descriptor, causes the length of that descriptor to exceed its maximum length.

    It may be caused by any of the copying, appending or formatting member functions and, specifically, by the Insert(), Replace(), Fill(), Fillz() and ZeroTerminate() descriptor member functions. It can also be caused by the SetLength() function.
    Regards,
    Kavit.

  3. #3
    Regular Contributor
    Join Date
    Aug 2008
    Posts
    413

    Re: User 11 Panic

    hi ,

    Thanks for the reply.But i have given u code...Is there any wrong in it?? where my descriptor length is getting overflowed??

    rohanwaugh

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Location
    Chennai,India
    Posts
    889

    Re: User 11 Panic

    But i have given u code...Is there any wrong in it?? where my descriptor length is getting overflowed??
    But debuggin your code and finding out the line which causes he panic will save time as well as the the focus area of the pblm..

  5. #5
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,737

    Re: User 11 Panic

    You may want to learn about descriptors, http://descriptors.blogspot.com/ or something may also be in the Wiki, or at least check http://www.symbian.com/developer/tec...ors.guide.html, especially the diagram at the end of the page.
    Things like
    TPtrC16 selectedProduct = ProductItemArray->operator[](indexProduct);
    TBuf<50> myDescProduct = (TBuf<50>&)selectedProduct;
    SalesOrderContainer1Buff.Append(myDescProduct);
    Are a bit overcomplicated, you could rather write
    Code:
    TPtrC16 selectedProduct = (*ProductItemArray)[indexProduct];
    TBuf<50> myDescProduct = selectedProduct;
    SalesOrderContainer1Buff.Append(myDescProduct);

Similar Threads

  1. Panic USER 42: how it is here ???
    By KhaledMahmood in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2010-01-25, 14:26
  2. Panic E32 USER -CBase 21
    By devdattac in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2008-11-28, 16:54
  3. Program exits with USER Panic 42
    By raffaelbechara in forum Symbian
    Replies: 2
    Last Post: 2008-10-15, 18:09
  4. USER 42 panic
    By Norrit_ in forum Symbian
    Replies: 3
    Last Post: 2006-09-14, 05:17
  5. user panic 11
    By ebinder in forum Symbian
    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
  •  
×