Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jul 2012

    Post check wether application is running or not

    Hi experts,
    I can check wether application is running or not from UI based application using
    TApaTaskList taskList( wsSession );
    TApaTask task = taskList.FindApp(KUidApp);
    but same code is not working if i am checking from exe based application.
    Is there any other method to check wether application running from exe application?
    Please help me.

    Thanks in advance.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003

    Re: check wether application is running or not

    What happens when you try it with non-GUI application ?

    You could of course also check for example the process list for the application process.

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: check wether application is running or not

    In GUI application the RWsSession object you get (probably from CEikonEnv or CCoeEnv) is an existing, initialized object.
    In non-GUI application you have to initialize an RWsSession object for yourself.
    Something like
    RWsSession wsSession;
    ...use the object here...
    CleanupStack::PopAndDestroy(); // wsSession is Close-d here
    If you tried getting wsSession from CEikonEnv/CCoeEnv in GUI-less code, that was an usage attempt on a NULL-pointer, which results in a KERN-EXEC 3 error message. Here it is probably worth mentioning that the phones hide these error messages by default, but you can enable them as described here: http://www.developer.nokia.com/Commu...ded_panic_code

Similar Threads

  1. How to check an application is running or not
    By honour88 in forum Symbian
    Replies: 5
    Last Post: 2011-12-26, 11:32
  2. Check If Application Running?
    By ManuMies in forum Symbian
    Replies: 0
    Last Post: 2010-11-04, 14:21
  3. Replies: 6
    Last Post: 2010-10-14, 16:20
  4. Replies: 0
    Last Post: 2010-08-09, 07:49
  5. Replies: 1
    Last Post: 2010-05-04, 01:41

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts