Can't start app from VS 2022 when WT is set as the default terminal #15867

Closed
opened 2026-01-31 04:50:49 +00:00 by claunia · 2 comments
Owner

Originally created by @sebastienros on GitHub (Nov 12, 2021).

An error box is display anytime I start a console application from VS 2022 after an app was closed (clicking on the cross) before it's finished. Unsetting WT as the default terminal fixes the issue.

Repro:

  • Set WT as the default terminal in the settings
  • Create a console application in VS with a Console.ReadLine()
  • Start the application from VS (CTRL+F5), and close it to terminate it
  • Start the application from VS, the following message is displayed
---------------------------
My.exe - Application Error
---------------------------
The application was unable to start correctly (0xc0000142). Click OK to close the application. 
---------------------------
OK   
---------------------------

Version tested:

WT 1.12.2931.0
VS 2022 17.1.0 Preview 1.0

Mitigations:

  • After restarting VS the issue disappears.
  • After setting Windows Console host as the default terminal application the issue disappears.
Originally created by @sebastienros on GitHub (Nov 12, 2021). An error box is display anytime I start a console application from VS 2022 after an app was closed (clicking on the cross) before it's finished. Unsetting WT as the default terminal fixes the issue. Repro: - Set WT as the default terminal in the settings - Create a console application in VS with a `Console.ReadLine()` - Start the application from VS (CTRL+F5), and close it to terminate it - Start the application from VS, the following message is displayed ``` --------------------------- My.exe - Application Error --------------------------- The application was unable to start correctly (0xc0000142). Click OK to close the application. --------------------------- OK --------------------------- ``` Version tested: WT 1.12.2931.0 VS 2022 17.1.0 Preview 1.0 Mitigations: - After restarting VS the issue disappears. - After setting Windows Console host as the default terminal application the issue disappears.
claunia added the Resolution-Duplicate label 2026-01-31 04:50:49 +00:00
Author
Owner

@zadjii-msft commented on GitHub (Nov 15, 2021):

Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #10974 for more discussion.

/dup #10974

@zadjii-msft commented on GitHub (Nov 15, 2021): Thanks for the suggestion! This is actually already being tracked by another issue on our repo - please refer to #10974 for more discussion. /dup #10974
Author
Owner

@ghost commented on GitHub (Nov 15, 2021):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Nov 15, 2021): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#15867