title: DirectX 11 debugger requires Windows SDK 10 but it's selected in IDE and present in system
body: <p>While working with directx11 APIs I frequently getting a warning stated below but I can see Windows SDK 10 is present in the system (C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.2 Tools) as well as selected that version in VS IDE.    </p>
  
  <blockquote>
    <p>D3D11CreateDevice: Flags (0x2) were specified which require the D3D11 SDK Layers for Windows 10, but they are not present on the system.
    These flags must be removed, or the Windows 10 SDK must be installed.
    Flags include: D3D11_CREATE_DEVICE_DEBUG</p>
  </blockquote>
  
  <p>I have to debug directx11 objects. I need to get rid from that warning. Would anyone please help to fix this issue?</p>
  
  <p><strong>FIX</strong>: Graphics Tools installed offline following this <a href="https://stackoverflow.com/questions/34318515/how-to-install-d3d11-sdk-layers-for-windows-10-offline">post</a> and the warning is gone.</p>
  
  <p>But now it throws exception from D3D11CreateDevice() but the flag D3D11_CREATE_DEVICE_DEBUG is added or not it throws following exception. How to fix this exception?</p>
  
  <blockquote>
    <p>Exception thrown at 0x27A7DD55 (d3d11_3SDKLayers.dll) in xxx.exe: 0xC0000005: Access violation reading location 0x00000000.</p>
  </blockquote>