Skip to content

VS debugger hangs when clicking on any button in WinformsControlsTest #65664

@WPMGPRoSToTeMa

Description

@WPMGPRoSToTeMa

Description

Clicking on any button in WinformsControlsTest application causes the Visual Studio debugger to hang.

cc: @dreddy-work, @RussKie.

Reproduction Steps

  1. Clone dotnet/winforms repository.
  2. Open the repository folder in the VS developer command prompt.
  3. Open the solution by start-vs command.
  4. Choose WinformsControlsTest as the current project on the toolbar.
  5. Start debugging (F5).
  6. Click on any button on the form or press Enter.

Expected behavior

The application and the debugger should not hang.

Actual behavior

The application hangs. The debugger cannot be stopped gracefully, VS suggests to force stop it:
image

Regression?

Caused by dotnet/winforms@9d3c2f8 (dotnet/winforms#6727).

Known Workarounds

Running without debugging helps. The debugger can be attached later, but clicking on any button causes a hang.

Configuration

  • Windows 10 Enterprise, 21H2, 19044.1526.
  • Tried on Any CPU/x86/x64.

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Diagnostics-coreclrquestionAnswer questions and provide assistance, not an issue with source code or documentation.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions