CreateSwapChainForHwnd failed with result 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE'

2024-02-04 10:27:53 浏览数 (1)

CreateSwapChainForHwnd failed with result 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE' (0x887A0022), falling back to legacy CreateSwapChain

DXGI_ERROR_NOT_CURRENTLY_AVAILABLE百度下:

https://vimsky.com/examples/detail/cpp-ex---IDXGIOutput-FindClosestMatchingMode-method.html

https://learn.microsoft.com/zh-cn/windows/win32/api/dxgi/nf-dxgi-idxgifactory-makewindowassociation

解决方案

不要在rdp会话里跑业务,在自建vnc会话里跑业务,自建vnc可参考https://cloud.tencent.com/developer/article/1853791

0 人点赞