Blame view

QChatClient/main.cpp 446 Bytes
1
2
#include "loginscreen.h"
#include "chatroom.h"
3
#include <QApplication>
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <signal.h>
#include <execinfo.h>


void handler(int sig)
{
  void *array[10];
  size_t size;
  size = backtrace(array, 10);
  fprintf(stderr, "SEGFAULT\n");
  backtrace_symbols_fd(array, size, STDERR_FILENO);
  exit(1);
}
18
19
20
21

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
22
23
    Chatroom c;
    c.show();
24
    c.startSession();
25
26
    return a.exec();
}