hi Ini,
thanks very much for sharing the code sample and apologies for the delay in testing it!
Before I could compile I needed to comment out this signal block:
#if !defined(Q_WS_WIN)
...
#endif
#if !defined(Q_WS_WIN)
...
#endif
To copy to clipboard, switch view to plain text mode
because they are not defined on my platform (Windows XP).
I found that the first time I pressed an error button an error dialog usually popped up but the app could continue (wow!). But the second time I pressed it I would get an unhandled exception and the app would shut down. I experienced this in both release and debug mode.
A few questions and comments:
- Why is SIGINT commented out?
- If you close the application normally you will get here:
qDebug() << "Should not get here!!";
qDebug() << "Should not get here!!";
To copy to clipboard, switch view to plain text mode
- I want to exit gracefully on an error so I have trigger() throw an exception, which I catch in main.
Richard
Bookmarks