GetData

That error is an odd one that I have only come across once before. I never found the exact cause, but I believe it was because the GPU was crashing due to a texture format that we were using. The GPU crashed, therefore the OS thought the graphics card had been removed. This was several years ago, but I seem to recall that we were using 16-bit surface format for render targets on a Surface RT tablet. Changing it to Color seemed to make the error go away, but it was a shame to lose all that memory just to avoid a GPU crash.

Also, turn on DirectX Debug Layer to see if it shows an extra information. Open your Start menu (tap Windows key) and type ‘dxcpl’. Press Enter.

Click on “Edit List…” and add your executable.

Enable native code debugging in your project properties.

Debug the game in VS now and you will get a bunch of extra output in the Output Window. This may help diagnose the cause.

Remember to remove the application from the debug list in the DirectX Control Panel afterwards.

5 Likes