Example #1
0
int main(int argc, char* argv[])
{
    GameServiceApplication serverApp("GameServer1");

    int ret = serverApp.start(argc, argv);

#ifdef _WIN32
#define _CRTDBG_MAP_ALLOC
    _CrtDumpMemoryLeaks();
#endif

    return ret;
}
Example #2
0
/**
 * Server application entry point.
 */
int main(int argc, char** argv)
{
    ServerApp serverApp(argc, argv);
    try
    {
        serverApp.initialize();
        return serverApp.execLoop();
    }
    catch(de::Error const &er)
    {
        qFatal("App init failed: %s", er.asText().toLatin1().constData());
        return -1;
    }
}