// // display a fatal error notification // void systemError(const char *message) { AppLog("Fatal system error: %s", message); ArrayList *args = new ArrayList(); args->Construct(); args->Add(*(new String(message))); Application::GetInstance()->SendUserEvent(USER_MESSAGE_EXIT_ERR, args); if (g_system) { BadaSystem *system = (BadaSystem *)g_system; system->exitSystem(); } }