954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How to stop the output window in VS 2010?

Hi everyone,

I'm running a c++ program using VS 2010.

But during a debugging, the output DoS window disappears when a problem happens.

How to stop the output window?

I know the problem could be solved by using run-cmd-*.exe. But is there a direct method? I mean, by configuring VS 2010 but not by using the cmd?

Thanks a lot!!

sophie.c
Newbie Poster
5 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

Sorry, it seems that the description above is not very correct.

I used a lib in my program. The program itself was correct semantically, so the build process is OK. But an overflow happened somewhere during the lib call. So the lib report an error and exit with code 0. The debug window disappears instantly after the overflow.

How can I stop the output dos window even if the program exit with code 0 so that I can see the error report given by the lib.

Thanks a lot a lot!!

sophie.c
Newbie Poster
5 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

Put a breakpoint somewhere in your program to prevent it from closing. There should be an icon on the taskbar that you can click to restore the console window where the error message is.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

Add cin.get() just before the return statement.

A simple search would have found this solution in seconds.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

Thank you Ancient Dragon!

sophie.c
Newbie Poster
5 posts since Apr 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: