0

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!!

3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by sophie.c
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!!

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.

1

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

A simple search would have found this solution in seconds.

Votes + Comments
Absolutely right.
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.