Unsolved Unloading the QLibrary causes a crash on exit
-
In Qt (v5.2) Windows application several dlls are used, and some of them have .ui files. If the UI from dll is opened at least once, no matter if it is closed or still open, on quit the application crashes if the corresponding dll is unloaded (using unload() function).
Is there a solution to avoid this issue?
Thanks in advance. -
Hi,
Are these files stored using Qt's resources system ?
-
No, resource system is not used to store dll/ui files. The dll files are loaded using the full path.
-
I was thinking about the ui files
-
Ui files use resource system (to keep resources), but the Ui files themselves are not included in the resource system
-
I would like to mention that the same issue does not occur in Qt 4.8
-
Then you might be experiencing a regression.
You should take a look at the bug report system to see if it's something known. If not please consider opening a bug report providing a minimal compilable example that reproduces the behavior.
-
But I think there should be a workaround.
Also is it necessary to unload dlls explicitly (using unload() function)? -
It's rarely needed to call unload.