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
HBufC* buffer = HBufC::NewLC(length);
TPtr ptr = buffer->Des();
iEdit1->GetText( ptr );
CPooDatabase* PooDb = CPooDatabase::NewL();
iPooTableItemArray = PooDb->GetPooTableRecordsByKeyL(ptr);