1 year ago
#385295
Safdar Sikander
Try catch not working with C++ GCC compiler (Qt Framework)
I am using Qt5.13.0 framework on centos with GCC compiler, try catch is working on windows but no working on Centos.
int main(int argc, char *argv[]) {
QApplication a(argc, argv);
a.setStyleSheet(Utils::loadStyle());
try {
MainWindow *w = nullptr;
w->show();
} catch (...) {
qWarning() << "Exception handled";
}
return a.exec();
}
I want to caught nullptr exception but app crash with code segment fault.
c++
qt
exception
gcc
centos
0 Answers
Your Answer