Visual C++ 2010: Start without debugging automatically closes console window
-
Tuesday, June 15, 2010 1:03 PM
Good day!
I've encountered a strange issue when writing simple console application in Visual C++ 2010 - when I pressed Ctrl+F5 to see the results of my program, console window had automatiacally closed. Also, I've tried this from main menu (Start without debugging), but result is the same - console keeps closing automatically.
My program is empty project, my OS is Windows 7 32 bit.
All Replies
-
Thursday, June 17, 2010 3:21 AMModerator
Hello,
Please right click your project name and go to Properties page, please expand Configuration Properties -> Linker -> System, please select Console (/SUBSYSTEM:CONSOLE) in SubSystem dropdown. Because, by default, the Empty project does not specify it.
Have a good day!
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!- Marked As Answer by Roahn LuoModerator Monday, June 21, 2010 7:04 AM
-
Thursday, June 24, 2010 8:08 AMThank you very much, it works.
-
Tuesday, January 18, 2011 10:11 PM
This works for one project. But how can I make this change universal and not tied to a specific project. I don't want to apply the same setting for each individual project. It's annoying specially since the previous versions of MSVC did not have this limitation.- Proposed As Answer by clarence01 Wednesday, January 19, 2011 1:46 AM
-
Sunday, April 24, 2011 3:12 AMThis solution didn't work for me. Any other suggestions? Thanks.
-
Wednesday, September 12, 2012 10:19 PM
This did not work for me either. Cannot find anything to unmark. This is not an answer- Proposed As Answer by recyclegal Wednesday, September 12, 2012 10:19 PM

