Page 1 of 2

Quit problem

PostPosted: Jan 29, 2007 @ 9:49am
by patrickwai

PostPosted: Jan 29, 2007 @ 9:51am
by edge

PostPosted: Jan 29, 2007 @ 10:27am
by patrickwai

PostPosted: Jan 29, 2007 @ 12:11pm
by edge

PostPosted: Jan 30, 2007 @ 3:22am
by patrickwai

PostPosted: Jan 30, 2007 @ 7:03am
by patrickwai
Hi Edge,

I'm using Visual C++ 2005 Express for development and the problem does not happen in desktop. Is it possible to emulate the real device for debugging?

Thanks

PostPosted: Jan 30, 2007 @ 10:53am
by edge
Hi Patrick,

There are emulator debug libraries available for UIQ 3.0 and Symbian 9.1 in the Edge SDK.

You can use the emulator libraries to create an emulator build using CarbIDE or a commandline project.

PostPosted: Jan 30, 2007 @ 11:18am
by patrickwai
Hi Edge,

Would you tell me how to use commandline project to build the emulator for symbian 9.1?

PostPosted: Jan 30, 2007 @ 11:28am
by edge
Hi Patrick,

You can use the Edge getting started tutorial on how to create a commandline project, or you can use the Helloworld sample as a template.

Make a few minor adjustments to build for the emulator:
- The \private\10003a3f\import\apps resource paths will be changed to \private\10003a3f\apps in the mmp file
- The command for building your project will be changed from gcce urel to winscw udeb

If the build is successful, start the emulator and the program should be added.

PostPosted: Jan 31, 2007 @ 11:56am
by patrickwai
Hi Edge,

I use "abld reallyclean" for 9.1 devices to delete the exported files and rebuild the project, am I do right?

Thanks

PostPosted: Jan 31, 2007 @ 2:21pm
by edge
Hi Patrick,

We usually use the abld clean command which should work in most cases. If reallyclean is also accepted as a parameter, we suggest using that :)

PostPosted: Feb 2, 2007 @ 7:02am
by patrickwai
Hi Edge,

I did this in the Helloworld sample:

class ClassMain : public ClassEdge
{
public:
.
.
.
.
void Exit();
};

void ClassMain::Exit()
{
Quit();
}

After building for Symbian 9.1 plateform, the program cannot terminate in N80. This problem does not exist with Symbian 6.1.

PostPosted: Feb 2, 2007 @ 8:34am
by edge
Hi Patrick,

The problem probably comes from the function definition. Exit() is also used as a Symbian internal function to terminate the application.

Would you like to try the following?:
- Rename it to Exit2 or give it another name
- From ClassMain call this->Exit() instead of Exit()

Please tell me if any of the above solutions work.

PostPosted: Feb 2, 2007 @ 9:16am
by patrickwai
Hi Edge,

Is Exit() a new function in Symbian 9.1? Since this problem does not exist in old version.

Thanks

PostPosted: Feb 2, 2007 @ 9:27am
by edge
Hi Patrick,

No, Exit has been around since the first version of Symbian. However, the new compiler shipped with Symbian 9+ might prefer the global Exit() function to the class' internal function.

Please tell me if my suggestions worked, then we can add it to the edgelib FAQ.