×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    check for process existence

    Hi

    how to check if exe process runs in Qt code?
    I would like to check for this before I run QProcess::startDetached() in order to avoid multiple background processes running.
    Something similar to TFindProcess stuff?
    ..or how to include symbian code inside Qt?

  2. #2
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: check for process existence

    can you let us know the other process you want to check for running state is written by you ?

  3. #3
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: check for process existence

    it shouldn't matter who is written it. But in this case no, it's not me. The one I know for sure it is non gui exe written in symbian c++

  4. #4
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: check for process existence

    Quote Originally Posted by kompotFX View Post
    it shouldn't matter who is written it. But in this case no, it's not me. The one I know for sure it is non gui exe written in symbian c++
    AFAIK you can't check if a process is running or not in 2 cases with you have not started the application with attached process and you have created the other process with singleton application in mind

    if you really want this type then you can try TFindProcess .

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: check for process existence

    ok, but how to integrate TFindProcess symbian c++ code into Qt application code?

  6. #6
    Super Contributor
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    9,968

    Re: check for process existence

    you can use the Symbian.C++ in device builds as normal API call in Qt. donot for to put the Symbian Macro around the Symbian.c++ API and header includes to avoid errors while compiling for other platforms.

  7. #7
    Registered User
    Join Date
    Jun 2004
    Posts
    177

    Re: check for process existence

    thx I will try

  8. #8
    Nokia Developer Moderator
    Join Date
    Sep 2004
    Location
    Tampere, Finland
    Posts
    11,359

    Re: check for process existence

    Quote Originally Posted by kompotFX View Post
    ok, but how to integrate TFindProcess symbian c++ code into Qt application code?
    http://qt.nokia.com/files/pdf/whitep...an-c-together/
    http://wiki.forum.nokia.com/index.ph...2B%2B_Together
    -- Lucian

    If you are not yet a DVLUP member it is time to correct that mistake :) Click here to join: http://www.dvlup.com/lucian/Invite

Similar Threads

  1. Replies: 7
    Last Post: 2011-01-20, 10:18
  2. Check the existence of a string in a string pool (table)
    By moldovan_catalin in forum Symbian
    Replies: 4
    Last Post: 2008-11-30, 22:30
  3. PlatSec - Process Isolation check under 9.1
    By SimonJudge in forum Symbian
    Replies: 18
    Last Post: 2008-06-06, 09:43
  4. Process termination check
    By prasanta_sadhukhan in forum Symbian
    Replies: 3
    Last Post: 2007-03-31, 16:27

Posting Permissions

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