New challenge: A blank mainwindow app gives error when openning in debug mode
-
It is a HP Victus 16 sxxxx series notebook
(AMD Ryzen 7 7840HS w/ Radeon 780M Graphics 3.80 GHz, 32 RAM)
Win11 Home edt. with having all OS updates
Fresh installed Qt having 6.2 and 6.7, with C++17
Created new C++ desktop gui app with qmainwindow
No any classes added or any modification applied, just blank app created by using qt's New Project -> blah blah.
C++: v17
Project configuration tried: Desktop Qt6.2.4 MSVC2019 x64 and Desktop Qt6.7.1 MSVC2019 x64
When runs it using release it is ok, a blank form appears.
When runs it using debug it errors at the step in the screenshot :
(tested with qmaike and cmake as well)
Should be system compatibability problem.. Anyone came accross and solved?access violation always at "m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION);" in debug mode.
with Desktop Qt6.2.4 MSVC2019 x64:
QDirect3D9Handle::QDirect3D9Handle() : m_d3d9lib(QStringLiteral("d3d9")) { using PtrDirect3DCreate9 = IDirect3D9 *(WINAPI *)(UINT); if (m_d3d9lib.load()) { if (auto direct3DCreate9 = (PtrDirect3DCreate9)m_d3d9lib.resolve("Direct3DCreate9")) m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION); } }
with Desktop Qt6.7.1 MSVC2019 x64
QDirect3D9Handle::QDirect3D9Handle() { m_direct3D9 = Direct3DCreate9(D3D_SDK_VERSION); }
-
It is a HP Victus 16 sxxxx series notebook
(AMD Ryzen 7 7840HS w/ Radeon 780M Graphics 3.80 GHz, 32 RAM)
Win11 Home edt. with having all OS updates
Fresh installed Qt having 6.2 and 6.7, with C++17
Created new C++ desktop gui app with qmainwindow
No any classes added or any modification applied, just blank app created by using qt's New Project -> blah blah.
C++: v17
Project configuration tried: Desktop Qt6.2.4 MSVC2019 x64 and Desktop Qt6.7.1 MSVC2019 x64
When runs it using release it is ok, a blank form appears.
When runs it using debug it errors at the step in the screenshot :
(tested with qmaike and cmake as well)
Should be system compatibability problem.. Anyone came accross and solved?access violation always at "m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION);" in debug mode.
with Desktop Qt6.2.4 MSVC2019 x64:
QDirect3D9Handle::QDirect3D9Handle() : m_d3d9lib(QStringLiteral("d3d9")) { using PtrDirect3DCreate9 = IDirect3D9 *(WINAPI *)(UINT); if (m_d3d9lib.load()) { if (auto direct3DCreate9 = (PtrDirect3DCreate9)m_d3d9lib.resolve("Direct3DCreate9")) m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION); } }
with Desktop Qt6.7.1 MSVC2019 x64
QDirect3D9Handle::QDirect3D9Handle() { m_direct3D9 = Direct3DCreate9(D3D_SDK_VERSION); }
-
It is a HP Victus 16 sxxxx series notebook
(AMD Ryzen 7 7840HS w/ Radeon 780M Graphics 3.80 GHz, 32 RAM)
Win11 Home edt. with having all OS updates
Fresh installed Qt having 6.2 and 6.7, with C++17
Created new C++ desktop gui app with qmainwindow
No any classes added or any modification applied, just blank app created by using qt's New Project -> blah blah.
C++: v17
Project configuration tried: Desktop Qt6.2.4 MSVC2019 x64 and Desktop Qt6.7.1 MSVC2019 x64
When runs it using release it is ok, a blank form appears.
When runs it using debug it errors at the step in the screenshot :
(tested with qmaike and cmake as well)
Should be system compatibability problem.. Anyone came accross and solved?access violation always at "m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION);" in debug mode.
with Desktop Qt6.2.4 MSVC2019 x64:
QDirect3D9Handle::QDirect3D9Handle() : m_d3d9lib(QStringLiteral("d3d9")) { using PtrDirect3DCreate9 = IDirect3D9 *(WINAPI *)(UINT); if (m_d3d9lib.load()) { if (auto direct3DCreate9 = (PtrDirect3DCreate9)m_d3d9lib.resolve("Direct3DCreate9")) m_direct3D9 = direct3DCreate9(D3D_SDK_VERSION); } }
with Desktop Qt6.7.1 MSVC2019 x64
QDirect3D9Handle::QDirect3D9Handle() { m_direct3D9 = Direct3DCreate9(D3D_SDK_VERSION); }