HI all, I create a testbed and create two views(CView1, CView2). but when i call following code: { CCoeControl* pTopView = ViewAsControl(ViewCount()-1); ASSERT(pTopView) RemoveView(*pTopView); //crash ... } it crashed. does anyone know the problems?
but there is a new question: how can i remove view drastically? when i call RemoveView function, the view is still hold by appui. so does anyone know how to remove and delete the view?
Forum posts: 4
thx all,
cding
Forum posts: 4
how can i remove view drastically? when i call RemoveView function, the view is still hold by appui. so does anyone know how to remove and delete the view?
Thanks,
cding
Forum posts: 4
I have found the function, by call :
CQikViewSwitcher& switcher = ViewSwitcher();
switcher.Delete(pTopCtrl);
it removed from heap!