You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whillst developing our app we are sometimes mistakenly passing a handle for a window that cannot be captured through to CreateCaptureItemForWindow (eg a child window).
I am trying to catch and debug such errors, but the catch never works, instead I get an exception.
This is my current code and the exception:
We hope to eliminate all such errors but if it happens in future we would like to catch rather than crash.
How can I do that?
I'm using VS2022 under Windows 11 V23H2
The text was updated successfully, but these errors were encountered:
Thanks for looking at this. I need to build my own list of windows that can be captured, using IsAltTabWindow to filter the enumeration. But some are sneaking through, eg this Chrome popup
and this spy++ properties window.
They are not shown by GraphicsCapturePicker, is that filtering on a different basis?
I'm concerned that I'm just playing whack-a-mole right now.
I'm thinking about also filtering out popups, but do you think that might exclude any windows that should be be included?
Whillst developing our app we are sometimes mistakenly passing a handle for a window that cannot be captured through to CreateCaptureItemForWindow (eg a child window).
I am trying to catch and debug such errors, but the catch never works, instead I get an exception.
This is my current code and the exception:
We hope to eliminate all such errors but if it happens in future we would like to catch rather than crash.
How can I do that?
I'm using VS2022 under Windows 11 V23H2
The text was updated successfully, but these errors were encountered: