Details
-
Bug
-
Resolution: Out of scope
-
P4: Low
-
None
-
5.10.1, 5.11.0 Beta 1
-
None
-
Windows 7 x64
MSVC 2015 (Update 3)
Qt 5.11 Beta 1
Description
Symptoms: Application crashes inside QVulkanInstance destructor if declared inside DLL
Steps to reproduce:
- in main(), create QGuiApplication
- in main(), call LoadLibrary(...) and get pointer to your function inside the DLL
- call the function
- inside your DLL, declare QVulkanInstance as global variable
- inside your DLL's function, call QVulkanInstance::create()
- call exit(0)
During application clean up, destructor of QVulkanInstance is called and it crashes the application.
Minimal example attached. MSVC 2015 (Update 3) was used. To compile example, update start.bat to set QTDIR to your Qt installation.