VSCode is NOT crashing when running a shallow copies program #7267
              
                Unanswered
              
          
                  
                    
                      AAnthon1985
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 13 replies
-
| It crashes for me in VS Code. Are you sure you're running the app until it runs the destructor? | 
Beta Was this translation helpful? Give feedback.
                  
                    13 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Learning C++, I am currently looking at the pitfalls when using shallow copy constructors. The program compiles well, and, unfortunately, it also runs well in VSCode, while it should crash. Is this VSCode specific? Running the program in my console CMD, the program crashes. Running the program in an online compiler, I get the feedback of memory violation. Thank you,
My tasks.json file:
Beta Was this translation helpful? Give feedback.
All reactions