Quote Originally Posted by mcosta View Post
The question is:
Why the GUI version works?
No idea. Maybe there are different safe guards in QCoreApplication and QApplication or maybe it's just pure coincidence.