Replies: 1 comment
-
SOLVED: In case this may help someone in the future: Always initialize your pointers or set them to nullptr; |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I have a project initially compiled in a Visual Studio .sln solution. Everything runs fine.
However, I tried to manually replicate the project in a CMake project , using the same sources and libraries as the .sln.
It compiles now and when the program start , for some reason the bgfx::Init is not properly initialized.
It has empty fields and it crashes when it reaches this line:
-> bgfxInit.platformData.nwh = glfwGetWin32Window(window_);
with error: 0xC0000005: Access violation reading location 0xFFFFFFFFFFFFFFFF.
Did I missed a flag when porting to CMake? what can be the reason for this?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions