RemoveView crash issue on UIQ

Login to reply to this topic.
Thu, 2007-03-15 04:59
Joined: 2004-01-09
Forum posts: 4
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?

Thanks,
cding

Thu, 2007-03-15 07:55
Joined: 2004-01-09
Forum posts: 4
Re: RemoveView crash issue on UIQ
I have fixed the issue, because i remove a active view. so viewserver crashed.
thx all,
Grin
cding
Mon, 2007-03-26 03:20
Joined: 2004-01-09
Forum posts: 4
Re: RemoveView crash issue on UIQ
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?

Thanks,
cding
Mon, 2007-03-26 03:35
Joined: 2004-01-09
Forum posts: 4
Re: RemoveView crash issue on UIQ
hehe,
I have found the function, by call :
CQikViewSwitcher& switcher = ViewSwitcher();
switcher.Delete(pTopCtrl);

it removed from heap!
  • Login to reply to this topic.