UIQ 3.1 Kern-Exec 3
| Fri, 2007-10-12 06:45 | |
|
Hi All I am using Metrowerks CodeWarrior 3.1 and working on UIQ3.1 Symbian OS 9.2 . When I do try to create Generic I am not getting UIQ 3.1 template. What should I do for the same ?? Also in UIQ 3.1 TargetType Thanks&Regards "To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution". |
|






Forum posts: 134
Hi All
I was waiting for the answer but as I didn't get a single response I tried to use UIQ 2. 1 template . But now again I am facing the problem . I just make a new project named "Demo " abd tried to run app without writting a single line . I am surprised as I am getting this error
" A call to User:Panic() has occured , indicating a programmingfault in the running application , Please refer to the document carefully .
Program : HelloWorld
Error : Kern-Exec 3"
I am surprised here as my app name is Demo and its showing me error of HelloWrold. Please help me this time I got struck here badly as I am very new to UIQ.
Thanks .
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 71
Hi Isha
this is with reference to your error Kern-Exec 3
http://www.symbian.com/Developer/techlib/v70docs/SDL_v7.0/doc_source/reference/SystemPanics/KernExecPanics.html#Panics%2ekern%2dexec
Hope this helps you
Forum posts: 26
Hi Isha,
This problem is quite common u r getting the error because ur resource file ll be containing a different name, so just go to all the rss and rls files and change the app name
.
and then clean all and recompile the resources first and then build the project it ll work, just try it
Forum posts: 134
Hi
At first I am very thankfull to all of you for replying me. I have checked my all resources files say
test11.rss tes11_loc.rss test11_reg.rss test11_wins.rss
In all files everything is ok what I notice that i last files there is include #include "helloworld.hrh" if I do comment this and use Test11.hrh then its giving error
mwldsym2.exe: Error creating file: Test11.exe
mwldsym2.exe: The process cannot access the file because it is being used by ano
ther process.
Errors caused tool to abort.
make[1]: *** [\Symbian\UIQ3.1\EPOC32\RELEASE\WINSCW\UDEB\Test11.exe] Error 1
make: *** [TARGETTEST11] Error 2
make -r -f "\Symbian\UIQ3.1\EPOC32\BUILD\Isha\Symbian\Application\Test11\WINS
CW.make" FINAL CFG=UDEB VERBOSE=-s
Please help me out .....
Thanks
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 285
Even I used get this error some times when I use CW. Simply closing and restaring CW solves this problem for me
Cheers,
Sri
Forum posts: 134
But I am not able to solve this problem . Even I am not able to debug also . Please guide me what should I do here ?? Is there any need to set environment variables or anything else is needed for CW . Actually I am using CW first time thats why I haven't much idea about this .
Any suggestion will be a great help for me .
Thanks
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 285
This happens to me some times when I try do command line building after debugging the same application using cw. This error is because the process is still running or all of its resources are not freed/closed properly. Did you try restarting your machine?
Cheers,
Sri
Forum posts: 134
yes I have already done this even I reinstalled SDK and CW .
Hey one more thing which I notice that default view's structure is different in compariion of mentioned in SDK. Should I change it . Here I am pasting the default view
#include "Test11.h"
//
// Constructor for the view.
//
CTest11AppView::CTest11AppView()
{
}
// Static NewL() function to start the standard two
// phase construction.
//
CTest11AppView* CTest11AppView::NewL(const TRect& aRect)
{
CEikonEnv::Static()->AlertWin(_L("View1"));
CTest11AppView* self = new(ELeave) CTest11AppView();
CleanupStack::PushL(self);
self->ConstructL(aRect);
CleanupStack::Pop();
return self;
}
//
// Destructor for the view.
//
CTest11AppView::~CTest11AppView()
{
delete iTest11Text;
}
// Second phase construction.
//
void CTest11AppView::ConstructL(const TRect& aRect)
{
CEikonEnv::Static()->AlertWin(_L("View"));
// Fetch the text from the resource file.
iTest11Text = iEikonEnv->AllocReadResourceL(R_TEST11_TEXT_HELLO);
// Control is a window owning control
CreateWindowL();
// Extent of the control. This is
// the whole rectangle available to application.
// The rectangle is passed to us from the application UI.
SetRect(aRect);
// At this stage, the control is ready to draw so
// we tell the UI framework by activating it.
ActivateL();
}
// Drawing the view - in this example,
// consists of drawing a simple outline rectangle
// and then drawing the text in the middle.
// We use the Normal font supplied by the UI.
//
// In this example, we don't use the redraw
// region because it's easier to redraw to
// the whole client area.
//
void CTest11AppView::Draw(const TRect& /*aRect*/) const
{
// Window graphics context
CWindowGc& gc = SystemGc();
// Area in which we shall draw
TRect drawRect = Rect();
// Font used for drawing text
const CFont* fontUsed;
// Start with a clear screen
gc.Clear();
// Draw an outline rectangle (the default pen
// and brush styles ensure this) slightly
// smaller than the drawing area.
drawRect.Shrink(10,10);
gc.DrawRect(drawRect);
// Use the title font supplied by the UI
fontUsed = iEikonEnv->TitleFont();
gc.UseFont(fontUsed);
// Draw the text in the middle of the rectangle.
TInt baselineOffset=(drawRect.Height() - fontUsed->HeightInPixels())/2;
gc.DrawText(*iTest11Text,drawRect,baselineOffset,CGraphicsContext::ECenter, 0);
// Finished using the font
gc.DiscardFont();
}
And Header class is ::
class CTest11AppView : public CCoeControl
{
public:
static CTest11AppView* NewL(const TRect& aRect);
CTest11AppView();
~CTest11AppView();
void ConstructL(const TRect& aRect);
private:
// Inherited from CCoeControl
void Draw(const TRect& /*aRect*/) const;
private:
HBufC* iTest11Text;
};
But in SDK it is mentioned that
class CExampleView : public CQikViewBase
{
private:
void ConstructL();
protected:
TVwsViewId ViewId()const;
void ViewContructL();
};
CExampleView* CExampleView::NewLC(CQikAppUi& aAppUi, const TVwsViewId aParentViewId, CExampleModel& aModel)
{
CExampleView* self = new(ELeave) CExampleView(aAppUi, aParentViewId, aModel);
CleanupStack::PushL(self);
self->ConstructL();
return self;
}
Thanks
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".
Forum posts: 285
Thats sounds strange. I did not see your view code because it is clearly not related to the view.
"mwldsym2.exe: The process cannot access the file because it is being used by another process" means process is still live
I cant think of what could be the problem. May be some one else might.
Cheers,
Sri
Forum posts: 26
First of all is there any reason why u want only the UIQ app why cant u try s60 app which is most robust platform
Forum posts: 134
At first I am very thankfull to everyone . I have already developed app on Series 60 and now this is my requirement to do on UIQ.
And now I have solved the problem . But still I have some query in my mind and want the solution of that.
As my orginal query of which I didn't get answer is :
"
a new project from menu option File->New->Symbian Project Wizard-> SDK selection->
After this I am getting three options viz:
Generic
Series 60
UIQ 2.1
I am not getting UIQ 3.1 template. What should I do for the same ?? Also in UIQ 3.1 TargetType
has changed from App to EXE ."
And I tried to create a project using UIQ2.1 that is biggest mistake. Whatever I got the default file say .ui , .app etc all are based on EIKApplication , EIKDocument etc and as I mentioned above the default view which I got is different from the one which is mentioned in SDK.
I have changed all the classes say .UI , .APP, .Document , .View everyone . now my test application is running properly.
But the problem is intact. It means if I do create the project through CW everytime I have to change all the default classes defination. Or have to delete all those and create new ones . I am very confused here.
Please guide me at this point as I got struck at the very initial point and not able to do anything further.
Thanks
Isha
"To the question of your life , you are the only Answer. To the problems of your life,you are the only Solution".