×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Exclamation [moved] Unable to reinvoke the process after its crash is observed

    Hi,

    My design includes 2 processes:

    Process A - Non UI Process
    Process B - UI Process



    Process A starts Process B in the beginning. Also Process A watches for Process B's death using RProcess::Logon(). When Process B crashes, Process A receives the notification.
    Now, Process A, closes the RProcess handle held for RProcess::Logon, tries to check if Process B is still running using TFindProcess::Next(), and finds that Process B is still running and it is unable to restart Process B.
    I tried to reinvoke Process B without checking if it is still running and it only leads Process B to crash again.
    Am I missing anything here??
    Its kinda very urgent to solve this issue. Hope someone would have faced this problem. Looking forward to a solution from the developers.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,169

    Re: [moved] Unable to reinvoke the process after its crash is observed

    What is the crash code ? is is some situation that does stay there ?

    Also how are you launching the process A again, and do you get any errors while doing the launching ?

  3. #3
    Registered User
    Join Date
    Nov 2008
    Posts
    4

    Re: [moved] Unable to reinvoke the process after its crash is observed

    I am trying to crash the UI thread of Process B using NULL Pointer reference in a Menu option

    TInt *ptr = 0; *ptr = 0;

    Executing the above code crashes the UI App.

    Following is the code i use to start the app.


    void Observer::StartAppL(TProcess processID)
    {
    TFullName appName;

    CApaCommandLine *cmdLine = CApaCommandLine::NewLC();
    cmdLine->SetCommandL(EApaCommandRun);

    RApaLsSession launcher;
    User::LeaveIfError( launcher.Connect() );

    switch(processID)
    {
    case ProcA:
    appName.Format(KAppProcAPath,iInstDrive);
    break;
    case ProcB:
    appName.Format(KAppProcBPath,iInstDrive);
    break;
    default:
    ASSERT(0);
    }

    cmdLine->SetExecutableNameL(appName);
    TInt statusCode = launcher.StartApp(*cmdLine);
    LOCALOG("Application %d(ID) launch status %d", processID, statusCode);

    launcher.Close();
    CleanupStack::PopAndDestroy(cmdLine);
    }

Similar Threads

  1. Replies: 22
    Last Post: 2008-11-12, 16:33
  2. [moved] Unable to run sample applications with Series 40 SDK..
    By tv_padmanabhan in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2008-11-11, 18:31
  3. [moved] unable to execute files due to security reasons
    By prateekprithvi in forum Symbian
    Replies: 2
    Last Post: 2008-08-01, 07:21

Posting Permissions

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