| 
| No console output Eclipse 3.1/CDT 3.0/Cygwin [message #147939] | Sat, 02 July 2005 12:38  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: steffen.heinzl.informatik.fh-fulda.de 
 Hi!
 
 I'm using Eclipse 3.1 with CDT 3.0 (M7) and Cygwin on Windows XP.
 If I run a program more than once (i.e. I start a program, let it finish
 and then start it again), I don't get console output except for the
 first run.
 
 My program (in C++):
 
 #include <iostream>
 
 int main()
 {
 std::cout << "Hello World!" << std::endl;
 }
 
 In C a corresponding program doesn't work either:
 #include <stdio.h>
 
 int main()
 {
 printf("Hello World!\n");
 return 0;
 }
 
 The program runs in a managed make c project/c++ project.
 
 Has anybody an idea how to solve this problem?
 Even if I fflush(stdout); it doesn't work.
 
 Best Regards,
 Steffen
 |  |  |  | 
|  | 
|  | 
|  | 
|  | 
| 
| Re: No console output Eclipse 3.1/CDT 3.0/Cygwin [message #148246 is a reply to message #148168] | Tue, 05 July 2005 20:10  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: j_apter.hotmail.com 
 Yea, that's the same problem (I assume "Das Handle ist ungültig" means
 "The file handle is invalid").  Check out the bugzilla link I posted in a
 previous response for more detailed info, but the main idea is that it
 seems as though in Eclipse 3.1RC2 they changed the way the launcher works
 and I suspect they create a new thread which causes a race condition with
 the thread that actually runs the application thus leading to the somewhat
 inconsistent behavior.  Anyways, this bug is crippling for me, so I have
 to use Eclipse 3.1RC1 until the CDT guys find a way around it.
 
 I briefly poked around in the C source code for the CDT plugin (where the
 read0 function is located), but I don't have the time to setup a JNI
 development environment to do any real debugging, hopefully someone else
 will be able to fix this.
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.05335 seconds