Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mysterious crash when initializing Direct3D, in CreateSwapChain #35

Open
rnikander opened this issue Nov 27, 2023 · 2 comments
Open

Mysterious crash when initializing Direct3D, in CreateSwapChain #35

rnikander opened this issue Nov 27, 2023 · 2 comments

Comments

@rnikander
Copy link

I was running the sample code fine on an Microsoft Surface. Then I went to my laptop (an ASUS Zenbook), and the programs crash at this line, with an error message I don't understand at all. Any ideas?

This is Chapter 4, Init Direct3D

d3dApp.cpp

ThrowIfFailed(mdxgiFactory->CreateSwapChain(
              mCommandQueue.Get(),
              &sd, 
              mSwapChain.GetAddressOf()));

The error message:

Exception thrown at 0x00007FFAF02AB3A7 (d3d12SDKLayers.dll) in Init Direct3D.exe: 0xC0000005: 
Access violation reading location 0x0000000000000000.
@Zakgard
Copy link

Zakgard commented Nov 10, 2024

Same issue...did you fix?

@rnikander
Copy link
Author

Sorry, can't remember. I ended up giving up D3D and going to Vulkan. Not that it's any easier. But given how difficult these APIs are I wanted my efforts to be more cross-platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants