Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Visual C++ 2022 cout bug?

Visual C++ 2022 cout bug?

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++testingdebuggingbeta-testing
17 Posts 5 Posters 7 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Graham Breach

    Its working fine here on Windows 10, VS 17.5.5, so I would suspect the Windows 11 terminal - can you try running it in a cmd.exe window instead?

    S Offline
    S Offline
    Shao Voon Wong
    wrote on last edited by
    #5

    My c:\windows\system32\cmd.exe is already the new Windows 11 terminal. I am not sure where the old cmd.exe is.

    L 1 Reply Last reply
    0
    • S Shao Voon Wong

      My c:\windows\system32\cmd.exe is already the new Windows 11 terminal. I am not sure where the old cmd.exe is.

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #6

      If the Terminal in Windows 11 is the same as the one in 10 then you can configure it to run cmd, Powershell, Linux shell etc.

      S J 2 Replies Last reply
      0
      • L Lost User

        If the Terminal in Windows 11 is the same as the one in 10 then you can configure it to run cmd, Powershell, Linux shell etc.

        S Offline
        S Offline
        Shao Voon Wong
        wrote on last edited by
        #7

        Thanks for your suggestion. I have configured it to run the normal cmd window by right-clicking the tab area and choosing "Settings" in the pop-up menu and selecting accordingly. The bug is gone.

        L 1 Reply Last reply
        0
        • D Dave Kreskowiak

          I cannot confirm the bug. Everything works in the order expected. Microsoft (R) C/C++ Optimizing Compiler Version 19.35.32217.1 for x86 on Windows 11 Pro Version 22H2 (OS Build 22621.1555)

          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
          Dave Kreskowiak

          S Offline
          S Offline
          Shao Voon Wong
          wrote on last edited by
          #8

          The bug is gone after I followed Richard's suggestion to run the old cmd console. Thanks for testing.

          D 1 Reply Last reply
          0
          • G Graham Breach

            Its working fine here on Windows 10, VS 17.5.5, so I would suspect the Windows 11 terminal - can you try running it in a cmd.exe window instead?

            S Offline
            S Offline
            Shao Voon Wong
            wrote on last edited by
            #9

            Using the cmd.exe window, the bug is gone.

            1 Reply Last reply
            0
            • S Shao Voon Wong

              Thanks for your suggestion. I have configured it to run the normal cmd window by right-clicking the tab area and choosing "Settings" in the pop-up menu and selecting accordingly. The bug is gone.

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #10

              Very interesting. What program was it running before your change?

              S 1 Reply Last reply
              0
              • L Lost User

                Very interesting. What program was it running before your change?

                S Offline
                S Offline
                Shao Voon Wong
                wrote on last edited by
                #11

                Before my change to the old normal cmd, the new Terminal console has a tabbed interface and was slower than cmd window. I did not change my code. Now it is running fine.

                L 1 Reply Last reply
                0
                • S Shao Voon Wong

                  Before my change to the old normal cmd, the new Terminal console has a tabbed interface and was slower than cmd window. I did not change my code. Now it is running fine.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #12

                  Mine also has a tabbed interface, so I have three tabs: cmd, PowerShell and Linux under WSL. It seems just as fast as anything else. I can only assume there is another interface that is the default in the 11 version. Unfortunately (or maybe not) my PC does not support Windows 11.

                  1 Reply Last reply
                  0
                  • S Shao Voon Wong

                    Thanks. Your Visual C++ and Windows edition is the same as mine. Did you run it a few times? The bug has 50% chance of reproducing when run normally (meaning not debugging).

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #13

                    Only about 30 times, and it never happened even once.

                    Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                    Dave Kreskowiak

                    1 Reply Last reply
                    0
                    • L Lost User

                      If the Terminal in Windows 11 is the same as the one in 10 then you can configure it to run cmd, Powershell, Linux shell etc.

                      J Offline
                      J Offline
                      jschell
                      wrote on last edited by
                      #14

                      Richard MacCutchan wrote:

                      Terminal in Windows

                      I am not familiar with that. Presumably it is the following which one must install specifically, at least in Windows 10? An overview on Windows Terminal | Microsoft Learn[^] So you use that normally? I am curious why do you consider that ideal rather than going directly to either cmd or a linux shell?

                      L 1 Reply Last reply
                      0
                      • S Shao Voon Wong

                        The bug is gone after I followed Richard's suggestion to run the old cmd console. Thanks for testing.

                        D Offline
                        D Offline
                        Dave Kreskowiak
                        wrote on last edited by
                        #15

                        I was using CMD Prompt and Powershell in Terminal with no issues at all, in both Debug and Release builds.

                        Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                        Dave Kreskowiak

                        S 1 Reply Last reply
                        0
                        • J jschell

                          Richard MacCutchan wrote:

                          Terminal in Windows

                          I am not familiar with that. Presumably it is the following which one must install specifically, at least in Windows 10? An overview on Windows Terminal | Microsoft Learn[^] So you use that normally? I am curious why do you consider that ideal rather than going directly to either cmd or a linux shell?

                          L Offline
                          L Offline
                          Lost User
                          wrote on last edited by
                          #16

                          jschell wrote:

                          why do you consider that ideal rather than going directly to either cmd or a linux shell?

                          I did not claim it is ideal, it is just another tool that I find useful at times. I run cmd, Powershell and Linux in "normal" windows also.

                          1 Reply Last reply
                          0
                          • D Dave Kreskowiak

                            I was using CMD Prompt and Powershell in Terminal with no issues at all, in both Debug and Release builds.

                            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                            Dave Kreskowiak

                            S Offline
                            S Offline
                            Shao Voon Wong
                            wrote on last edited by
                            #17

                            It looks like nobody is encountering this issue except me. Thanks again. You can stop testing.

                            1 Reply Last reply
                            0
                            Reply
                            • Reply as topic
                            Log in to reply
                            • Oldest to Newest
                            • Newest to Oldest
                            • Most Votes


                            • Login

                            • Don't have an account? Register

                            • Login or register to search.
                            • First post
                              Last post
                            0
                            • Categories
                            • Recent
                            • Tags
                            • Popular
                            • World
                            • Users
                            • Groups