equal
deleted
inserted
replaced
57 // Tell the app to close |
57 // Tell the app to close |
58 TRACES1("COomCloseApp::FreeMemory: Closing app with window group id %d",iWgId); |
58 TRACES1("COomCloseApp::FreeMemory: Closing app with window group id %d",iWgId); |
59 |
59 |
60 RThread thread; |
60 RThread thread; |
61 TInt err=thread.Open(iCurrentTask.ThreadId()); |
61 TInt err=thread.Open(iCurrentTask.ThreadId()); |
62 if (!err) |
62 if (err == KErrNone) |
63 { |
63 { |
64 RProcess process; |
64 RProcess process; |
65 thread.Process(process); |
65 err = thread.Process(process); |
66 TBool isDataPaged = process.DefaultDataPaged(); |
66 if(err == KErrNone) |
67 if((aIsDataPaged && isDataPaged) || (!aIsDataPaged && !isDataPaged )) |
|
68 { |
67 { |
69 iCurrentTask.EndTask(); |
68 TBool isDataPaged = process.DefaultDataPaged(); |
|
69 if((aIsDataPaged && isDataPaged) || (!aIsDataPaged && !isDataPaged )) |
|
70 { |
|
71 iCurrentTask.EndTask(); |
|
72 } |
|
73 process.Close(); |
70 } |
74 } |
|
75 thread.Close(); |
71 } |
76 } |
72 } |
77 } |
73 |
78 |
74 COomCloseApp::~COomCloseApp() |
79 COomCloseApp::~COomCloseApp() |
75 { |
80 { |