I'm using a ListBox view in which the list is populated using the entries in the contacts database. The problem is that when I go back from this view to the calling view(in same app), I am getting a "Application Closed KERN EXEC 3" error.
Here's the CODE i am using to go back:
TBool <View Class>::HandleControlPaneRightSoftKeyPressedL( TInt aCommand )
< ptr to container for this view>->ClearLB();
AppUi()->ActivateViewL(iPrevViewId); // the TVwsViewId of calling view
DoDeactivate(); // deactivating this view
return ETrue; // to let HandleCommandL know that
// the event has been handled
definition of ClearLB:
void <view's container>:: ClearLB()
if ( iContactDb ) // ptr to default CContactDatabase
if ( iContactArray ) // item text array of ListBox
I think the problem is occuring coz the resources are not being freed up properly... Could anyone please tell me which resources need to be freed and how?