When you design a S60 project with Avkon views, the view's destructor contains a defect.

/**
* The view's destructor removes the container from the control
* stack and destroys it.
*/
CPA_S60ContainerView::~CPA_S60ContainerView()
{
// [[[ begin generated region: do not modify [Generated Contents]
delete iPA_S60Container;
// ]]] end generated region [Generated Contents]

}

As can be seen, the comment states the destructor removes the view from the control stack, but the code shows it does not do so. So either the code or the comment is incorrect.

The code in DoDeactivete() does remove the container from the control stack.

Sander van der Wal
www.mBrainSoftware.com