title: Access violation writing location 0x00000000
body: <p>When the application reaches these lines of code: </p>
  
  <pre><code>ID3D11ShaderResourceView* tempMeshSRV;
  wstring MediaFilePath = DefaultPath + fileNamePath;
  hr = D3DX11CreateShaderResourceViewFromFile( d3d11Device, MediaFilePath.c_str(), NULL, NULL, &amp;tempMeshSRV, NULL );
  </code></pre>
  
  <p>I get the following error:</p>
  
  <p>Unhandled exception at 0x011428b5 in Game.exe: 0xC0000005: Access violation writing location 0x00000000.</p>
  
  <p>It was working fine until I added the "wstring MediaFilePath = DefaultPath + fileNamePath;" line. The resource it is trying to load is definitely in the correct location.</p>