microsoft / Windows.UI.Composition-Win32-Samples

Windows.UI.Composition Win32 Samples
MIT License
459 stars 186 forks source link

Crash when running ScreenCaptureforHWND demo and using graphical debugging tools at the same time #92

Open tlivegaming opened 2 years ago

tlivegaming commented 2 years ago

System:Windows10 Winver: 19042.1237 IDE: Visual Studio 2019

Steps to reproduce the crash

step1

Run ScreenCaptureforHWND

step2

Debug Graphics image

step3

Select a windows,such as Visual Studio 2019

CRASH image

robmikh commented 2 years ago

I'll have to confirm this, but I believe that if the graphics debugging tools are anything like PIX, it uses D3D11-on-12. D3D12 is unsupported by Windows.Graphics.Capture at this time.