In my current project, I extract some texture colors to define player colors, etc. While running it on my Win10 PC (Intel i5, Nvidia GTX 750), all is fine and works as expected. Running it on a Win 7 Sp1 (Intel i5, Nvidia GTX 1060) setup, it crashes with the following exception:
SharpDX.SharpDXException: HRESULT: [0x887A0005], Module: [SharpDX.DXGI], ApiCode: [DXGI_ERROR_DEVICE_REMOVED/DeviceRemoved], Message: Unknown
at SharpDX.Direct3D11.DeviceContext.MapSubresource(Resource resourceRef, Int32 subresource, MapMode mapType, MapFlags mapFlags)
at SharpDX.Direct3D11.DeviceContext.MapSubresource(Texture2D resource, Int32 mipSlice, Int32 arraySlice, MapMode mode, MapFlags flags, DataStream& stream)
at SharpDX.Direct3D11.DeviceContext.MapSubresource(Resource resource, Int32 subresource, MapMode mode, MapFlags flags, DataStream& stream)
at Microsoft.Xna.Framework.Graphics.Texture2D.PlatformGetData[T](Int32 level, Int32 arraySlice, Rectangle rect, T data, Int32 startIndex, Int32 elementCount)
at Microsoft.Xna.Framework.Graphics.Texture2D.GetData[T](T data)
I tried to catch it and work around it, but no success so far. The few hints I found in this direction were either not answered (link) or pointed towards overclocking issues or old sets of drivers (link). I checked the overclocking issue (not the case) and of course updated to the newest set of drivers.
Would you have any idea what the problem could be? Thanks for your input!