Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] The old problem of buffering in the console (Windows)

I guess once a week there is a new entry in the CDT newsgroup 
(http://www.eclipse.org/newsportal/thread.php?group=eclipse.tools.cdt) about 
the flushing problem of the console on Windows. A solution would be very 
appreciated.

   Axel

Am Mittwoch, 31. März 2010 15:22:06 schrieb Leherbauer, Anton (Toni):
> Regarding the stream buffering, please refer to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=173732.
> In short, the Eclipse console is not doing the buffering, but the C
> library linked into the process.
> You'd certainly gain a lot of appreciation from the community if you
> find a solution to this problem.
> 
> Toni
> 
> 
> ________________________________
> 
> 	From: cdt-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-dev-bounces@xxxxxxxxxxx] On Behalf Of Omer Strulovich
> 	Sent: Wednesday, March 31, 2010 2:32 PM
> 	To: CDT General developers list.
> 	Subject: [cdt-dev] The old problem of buffering in the console
> (Windows)
> 
> 
> 	If you've used Eclipse CDT on Windows you know that the Eclipse
> console has buffering problems.
> 	Basically, it doesn't flush the streams when a newline is
> received. (Unlike a normal windows console window)
> 	Until lately I used to either add fflush calls when needed or
> add the following lines in the start of the main function:
> 	setvbuf(stdout, NULL, _IONBF, 0);
> 	setvbuf(stderr, NULL, _IONBF, 0);
> 
> 	Since we're using Eclipse CDT as the recommended IDE for a
> software development course I need some solution or workaround to allow
> my students work on CDT.
> 	Having mixed stdout & stderr is unacceptable for a programming
> newbie. (Seriously, this bug is probably preventing hundred of new C/C++
> programmers working on windows from seriously using Eclipse instead of
> Visual)
> 
> 	I would love if someone could help me with a workaround.
> 	Or even better, direct me to the right piece of code in Eclipse
> where I can solve this problem myself and be done with it. (I have the
> time and necessary skills)
> 
> 
> 	-Omer
> 



Back to the top