Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Feb 2009

    SetTextL problem

    we have a problem with SetTextL(). the screen has 2 text boxes: in the first textbox we accept a string which is used for retrieval from the database, and is displayed in the second textbox. the emulator crashes immediately when we click on the show menu option. we tried putting the last statement [iEdit2->DrawNow();] in the handle menu command event and the rest in edit1 state changed event, but the emulator still crashes, though the retrieval code worked. plz go thru our code below and provide suggestions for modification.

    Bool CpooContainerView::HandleShowMenuItemSelectedL( TInt aCommand )
    // TODO: implement selected event handler
    TInt length=iEdit1->TextLength();
    HBufC* buffer = HBufC::NewLC(length);
    TPtr ptr = buffer->Des();

    iEdit1->GetText( ptr );
    CPooDatabase* PooDb = CPooDatabase::NewL();


    RArray<TPooTableItem> iPooTableItemArray;

    iPooTableItemArray = PooDb->GetPooTableRecordsByKeyL(ptr);




    return ETrue;

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Helsinki, Finland

    Re: SetTextL problem

    Quote Originally Posted by joteddy123 View Post
    , but the emulator still crashes
    See this: Extended Panic Code
    Nokia Developer Wiki Moderation team

  3. #3
    Super Contributor
    Join Date
    Oct 2007
    જુનાગઢ - India

    Re: SetTextL problem

    Also try to run in debug mode, so that u can get idea about where (in which statement) is the problem.

Similar Threads

  1. CEikEdwin --- SetTextL problem
    By damodharan in forum Symbian
    Replies: 10
    Last Post: 2008-11-15, 10:24
  2. Problem with eglSwapBuffers and heap corruption
    By greatape in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2007-05-24, 03:35
  3. netcards - Problem with opening adapter
    By kernj in forum Symbian Tools & SDKs
    Replies: 5
    Last Post: 2007-01-10, 08:56
  4. Problem: S60 SDK for CW in PC with .NET
    By anttij in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 1
    Last Post: 2005-02-28, 11:36

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts