equal
deleted
inserted
replaced
392 } |
392 } |
393 |
393 |
394 |
394 |
395 void CMemSpyProcess::RefreshL( const RProcess& aProcess ) |
395 void CMemSpyProcess::RefreshL( const RProcess& aProcess ) |
396 { |
396 { |
397 const TBool handleValid = aProcess.Handle() != KNullHandle; |
397 TBool handleValid = aProcess.Handle() != KNullHandle; |
398 if ( handleValid ) |
398 if ( handleValid ) |
399 { |
399 { |
400 RMemSpyDriverClient& driver = iEngine.Driver(); |
400 TInt err = iEngine.Driver().GetProcessInfo( iId, *iInfo ); |
401 User::LeaveIfError( driver.GetProcessInfo( iId, *iInfo ) ); |
401 if ( err != KErrNone && err != KErrDied ) |
|
402 { |
|
403 User::Leave( err ); |
|
404 } |
|
405 |
|
406 if ( err == KErrDied ) |
|
407 { |
|
408 handleValid = false; |
|
409 } |
402 } |
410 } |
403 |
411 |
404 // Get priority, exit info etc |
412 // Get priority, exit info etc |
405 iExitType = handleValid ? aProcess.ExitType() : EExitKill; |
413 iExitType = handleValid ? aProcess.ExitType() : EExitKill; |
406 iPriority = handleValid ? aProcess.Priority() : EPriorityForeground; |
414 iPriority = handleValid ? aProcess.Priority() : EPriorityForeground; |