I have a dll containing a Qt GUI, launched by a "server" app, which continue after the GUI is killed (unloaded).
All works fine, but if I restart the GUI, all crashed. If I just run once and list loaded dlls, Qt5Core, Qt5Gui and qwindows.dll is never unloaded.
I think that I need to unload them (my dll create a QApplication in dedicated thread, properly destroyed)
I'm using msvc2010 compiler on windows 7, and no logs ("general protection fault" is not a log for me).
Is there any solution to unload all qt dll (Qtcore, QtGui, qwindows) ? (Without calling explicitly "FreeLibrary" function)