PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Quit problem

Hi Edge,

When I quit my program in Symbian 9.1 device (n80), it cannot terminate successfully and the screen is held at the last screen shot. Then I go to "Tools"-> "Manager" to delete the program, it showed that the program was still running. This problem does not happen in older version devices (n70, 6680, 3230).

Thanks~
Hi Patrick,

Can you tell me if it also happens when running the Blastar or Helloworld pre-compiled samples?
It does not happen in Blastar and Helloworld samples.
Hi Patrick,

This may be the cause of an infinite loop in one of your class destructors. Check to see if there are big calculations in any of the class destructors. Are you able to quit your application using the red 'hangup' button?

Also, could you post the source code of your EdgeMain function?
Hi Edge,

I can use the red 'hangup' button to back to the menu but cannot start the program again successfully.
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
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.
Hi Edge,

Would you tell me how to use commandline project to build the emulator for symbian 9.1?
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.
Hi Edge,

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

Thanks
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 :)
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.
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.
Hi Edge,

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

Thanks
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.
Hi Edge,

The problem is solved by renaming the function. Thanks a lot. :D