Leave in BaseConstructL.....
Login to reply to this topic.
Fri, 2008-09-05 06:47
Joined: 2008-08-28
Forum posts: 27


I have a Problem in BaseConstructL(EAknEnableSkin) function.It Leaves when i DEBUG.......Can any1 suggest me what is the problem.....


Fri, 2008-09-05 06:47
Joined: 2008-08-28
Forum posts: 27

thxx in advance.....

Fri, 2008-09-05 07:02
Joined: 2005-11-20
Forum posts: 1321

BaseConstructL() of which control class? And why don't you TRAP the leave and check the result code?


René Brunner

Fri, 2008-09-05 07:12
Joined: 2008-08-28
Forum posts: 27

Thxx for the response......

I have make the multiview program,
There i have call the BaseConstruct in Appui class........But it Leaves......
I have use TRAP,i gives the result code: -858993460.....
Please tell me the reason......

class is:
void CMyMultiViewsAppUi::ConstructL()
{
//Initialise app UI with standard value
TRAPD(result,BaseConstructL(EAknEnableSkin));
if(KErrNone!=result)
{
User::Leave(result);
}

iAppView1 = CMyMultiViewsView1::NewL();
iAppView2 = CMyMultiViews2::NewL();

// Transfer ownership to base class
AddViewL( iAppView1 );
AddViewL( iAppView2 );

SetDefaultViewL( *iAppView1 );
}

Fri, 2008-09-05 07:24
Joined: 2008-08-28
Forum posts: 27

Thxx in advance.....

Fri, 2008-09-05 09:10
Joined: 2004-07-09
Forum posts: 111

Hi,

Make sure that your AppUi class is derived from CAknViewAppUi when you are using view Architecture (this may not cause a crash).

and

check the resoure file, you may miss some important resource or its field.

Regards,
Dipak


DipakBaviskar


copyright 2003-2009 NewLC SARL