C++ (Qt) QPushButton* pb = new QPushButton(this); pb->show(); delete pb; try { pb->show(); } catch(std::exception &e) { QMessageBox::about(this, "Error", "Catch error!"); } catch (...) { QMessageBox::about(this, "Error", "Something error!"); }
C++ (Qt) QPushButton* pb = new QPushButton(this); pb->show(); !!!! delete pb; try { pb->show(); } catch(std::exception &e) { QMessageBox::about(this, "Error", "Catch error!"); } catch (...) { QMessageBox::about(this, "Error", "Something error!"); }