Skip to content

Mysterious crash when initializing Direct3D, in CreateSwapChain #35

@rnikander

Description

@rnikander

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions