Re: std::cout problem

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Alex wrote:
I wrote a console_based application, full of such codes
///code start
cout << "blah blah blah" << endl
///code ends

after running one night, it could not show "blah blah blah" any
longer, and I'm sure the application was still alive, so confusing,
anyone who would point me out? thanks a lot.

Any stream can go bad/fail in certain situations. When that happens, any output send to it will just be ignored.

If you want to track down where it happens one quick option may be to enable exceptions for cout (see MSDN basic_ios::exceptions ) and running your program under the debugger.

br,
Martin
.



Relevant Pages

  • Re: PRE GAME SPIRIT PEP TALKS??????
    ... rules better and NOT make partialy blah blah blah ... alex and anyone else that buys his bullshit......or defends his ... observers and the future of referees, or just one person's and one ... no hitting below the belt etc etc." Obviously the ref is ...
    (rec.sport.disc)
  • Re: PRE GAME SPIRIT PEP TALKS??????
    ... rules better and NOT make partialy blah blah blah ... alex and anyone else that buys his bullshit......or defends his ... stance......or dosent call bullshit on him ... observers and the future of referees, or just one person's and one ...
    (rec.sport.disc)
  • Re: Dr. Bates Treatment Regarding Clear Flashes and Neuroplasticity
    ... The great Alex Eulenberg vs. David Granet debate ... somewhat now compared to the quality of postings there a few years ... well you have to be crowned the chief of the duff-sitters Otis! ... "this is what I think" blah blah blah. ...
    (sci.med.vision)
  • Re: unicode() vs. s.decode()
    ... I just parsed it as "blah blah blah I won't admit I'm wrong" and ... Alex, there are still a number of performance optimizations that require ...
    (comp.lang.python)
  • Re: INCLUDE
    ... I have no any fresh idea, MSDN keeps silence, there is no official way to include some external text files to be compiled as a part of a source code. ... I just notice one thing - if you already included some USING namespace in your class and later you included this class into your next file all namespaces included before are accessible. ... using blah blah blah ...
    (microsoft.public.dotnet.languages.csharp)