Share via

Win32CaptureSample: GraphicsCapturePicker breaks Windows Explorer after display is unplugged

DonF 1 Reputation point
2021-01-19T18:02:51.983+00:00

System Info: Windows 10 Pro x64 10.0.19041 running on Lenovo L540
Visusal Studio 2019 V16.8.2
Windows SDK: 10.0.19041.0
Platform Toolset: VS 2019 (v142)
Microsoft.Windows.CppWinRT nuget package v2.0.201217.4

Laptop has 2 external displays plugged in.

Repro Steps:

  1. Get and build Win32CaptureSample-master
  2. Start the app and press "Open Picker" to show the GraphicsCapturePicker popup
  3. Unplug one of the external displays
  4. Press cancel on the GraphicsCapturePicker popup

At this point Windows Explorer is in a bad state. Clicking Windows Icon in the task bar does not bring up the start menu. Right clicking any of the app icons in the task bar does not bring up the context menu. Clicking the "Open Picker" button on the Win32CaptureSample app brings up a blank window instead of the GraphicsCapturePicker. It was necessary to restart Windows Explorer from the Task Manager in order to recover.

Running the same steps as above with only 1 external display will result in Win32CaptureSample throwing an exception when the display is unplugged.

58248-image.png

Community Center | Not monitored
0 comments No comments

1 answer

Sort by: Most helpful
  1. AryaDing-MSFT 2,916 Reputation points
    2021-01-20T02:35:04.203+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Currently, Microsoft Q&A supports the products listed over here (more to be added later on).
    Your sample comes from third party, it is out of scope. You could report your problem with Github issue of third party sample.


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.