• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: (cout not being flushed properly)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (cout not being flushed properly)


  • Subject: Re: (cout not being flushed properly)
  • From: Doug Landauer <email@hidden>
  • Date: Wed, 29 Aug 2001 12:10:52 -0700

On Wednesday, August 29, 2001, at 10:29 AM, Scott Tooker wrote:
The address you want is email@hidden.

I believe that you are running into a bug in the STL libraries on 10.0.x.

Actually, it's in the Standard C++ Library, not in the STL part of that.

I believe this should be fixed in the next release, but others on the Project Builder list would know the specifics.

The Radar numbers for this bug are 2674713 and the related 2557789.
And yes, the fix will be in the next release.

There are several possible workarounds:

- de-synchronize cout from stdout. I.e., once, somewhere near
the start of your program, call:

cout.sync_with_stdio(false);

OR

- make stdout unbuffered. Once, near the start of your program:

setbuf( stdout, 0 );

OR, if you'd rather keep stdout buffered most of the time,
you'll have to flush it explicitly each time you send out
a non-line and want it to show up before you write the newline:

- explicitly flush stdout:

fflush(stdout);


On Tuesday, August 28, 2001, at 08:04 PM, Tony Cate wrote:

When trying to run a c++ app with the cin object, using the PB IDE,
output is held up until all the input has occurred.


References: 
 >Re: (no subject) (From: Scott Tooker <email@hidden>)

  • Prev by Date: Inherited constructors
  • Next by Date: Re: How to authenticate user
  • Previous by thread: Re: (no subject)
  • Next by thread: Re: (no subject)
  • Index(es):
    • Date
    • Thread