
Originally Posted by
sumit.rathi
Just debug your code first, then ask next question whenever you would be able to know where the problem can be.
The problem is that,on winscw emulator it work's perfect. Debug on device,doesn't work for me.
Let's i try to explain more deep.
First,
i make up an view in AppUi constructor
Code:
void CsTorrentAppUi::ConstructL()
{
// Initialise app UI with standard value.
BaseConstructL(CAknAppUi::EAknEnableSkin);
waitNoteWrapper = CAknWaitNoteWrapper::NewL();
iTimeWaster.CreateLocal();
// Create view object
iAppView = CsTorrentAppView::NewL(ClientRect());
AddToStackL(iAppView);
}
then it goes to app view constructor
Code:
// -----------------------------------------------------------------------------
// CsTorrentAppView::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CsTorrentAppView::ConstructL(const TRect& aRect)
{
SelectedItem=0;
MSelectedItem=1;
WhatToDo=0;
login=NULL;
pass=NULL;
HBufC8* FilBuff(NULL);
RFile ReadFil;
User::LeaveIfError(iFsSession.Connect());
iFsSession.ShareProtected();
TFileName aFile;
User::LeaveIfError(iFsSession.PrivatePath(aFile));
TParsePtrC parse((CEikonEnv::Static()->EikAppUi()->Application())->AppFullName());
// Create a window for this application view
CreateWindowL();
// Set the windows size
SetRect(aRect);
//User::LeaveIfError(iFsSession.Connect());
//iFsSession.ShareProtected();
TFileName filePath;
User::LeaveIfError(iFsSession.PrivatePath(filePath));
filePath.Append(KMultiBitmapFilename);
//TParsePtrC parse((CEikonEnv::Static()->EikAppUi()->Application())->AppFullName());
filePath.Insert(0, parse.Drive());
// with the help of icon-provider AknIconUtils can get get the file
// from this application's private folder
iIconProvider = new (ELeave) CIconFileProvider(iFsSession, filePath);
iBackgroundImage = AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesBgr);
iSear=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesSear);
iCd=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesCd);
iDbar=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesDbar);
iDownload=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesDownload);
iLogo=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesLogo);
iMobileHat=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesMobile_hat);
iMusic=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesMusic);
iPk=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesPk);
iPp=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesPp);
iSave=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesSave);
iUser=AknIconUtils::CreateIconL(*iIconProvider, EMbmGraphicsappimagesUser);
// Activate the window, which makes it ready to be drawn
SetExtentToWholeScreen();
ScrSize=CEikonEnv::Static()->ScreenDevice()->SizeInPixels();
ActivateL();
DrawNow();
}
then i see all that i saw in winscw emulator
Also function TKeyResponse AppUi::HandleKeyEvent works well.
I make up setting's there and use my option's menu.
and when i use my options key, which is bind to ECommand1 i getting KERN-EXEC PANIC 3.
As i saw, panic is raised not in my code. not in HandleCommandL procedure i mean. Somewhere before.
Is it possible, to some stack error's?
What should i do for now?
By the way, i testing it on nokia e61i device, wich is symbian 9.1 version, and SDK,which i use (S60v3 FP1) to build is symbian 9.2 May be problem in this?