AppLogDebug("Enter");
AppLogDebug("Exit");
}
+
+
+void
+BaseForm::ShowMemoryFullPopup(void)
+{
+ AppLogDebug("ENTER");
+ int modalResult = 0;
+ MessageBox msgBox;
+ AppResource* pAppResource = null;
+ String memoryLowTitle;
+ String memoryLowMessage;
+ result r = E_SUCCESS;
+
+ pAppResource = Application::GetInstance()->GetAppResource();
+ TryReturnVoid(pAppResource != null, "Failed to allocate memory for pAppResource");
+
+ pAppResource->GetString(L"IDS_LOW_MEMORY_MSG_TITLE", memoryLowTitle);
+ pAppResource->GetString(L"IDS_LOW_MEMORY_MSG", memoryLowMessage);
+
+
+ r = msgBox.Construct(memoryLowTitle, memoryLowMessage, MSGBOX_STYLE_NONE, MESSAGEBOX_DISPLAY_TIME_3_SEC);
+ TryReturnVoid(r == E_SUCCESS, "msgBox::Construct() failed by [%s]", GetErrorMessage(r));
+ msgBox.ShowAndWait(modalResult);
+
+ switch (modalResult)
+ {
+ case MSGBOX_RESULT_CLOSE:
+ {
+ AppLogDebug("MSGBOX_RESULT_CLOSE");
+ _pCameraPresentationModel->SetAppControlRequestType(CameraPresentationModel::APP_CONTROL_REQUEST_TYPE_FAILED);
+
+ r = TerminateApp();
+ AppLogDebug("TerminateApp fail [%s]", GetErrorMessage(r));
+ }
+ break;
+
+ default:
+ break;
+ }
+ AppLogDebug("EXIT");
+}