Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » No console output Eclipse 3.1/CDT 3.0/Cygwin
No console output Eclipse 3.1/CDT 3.0/Cygwin [message #147939] Sat, 02 July 2005 12:38 Go to next message
Eclipse UserFriend
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 #148153 is a reply to message #147939] Mon, 04 July 2005 22:00 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: j_apter.hotmail.com

I have this problem as well, see my post titled "IOException When
Launching Appplication (Eclipse 3.1RC2+)" for more information (or goto
http://www.eclipse.org/newsportal/article.php?id=7727&gr oup=eclipse.tools.cdt#7727
if you use the web interface). Also refer to
https://bugs.eclipse.org/bugs/show_bug.cgi?id=102043 for the bugzilla bug
report that I filled. Unfortunately there does not appear to be a
workaround (other than dropping back to Eclipse 3.1RC1), however, I am
glad someone else was able to confirm this.
Re: No console output Eclipse 3.1/CDT 3.0/Cygwin [message #148162 is a reply to message #148153] Tue, 05 July 2005 05:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: steffen.heinzl.informatik.fh-fulda.de

DaCypher wrote:
> I have this problem as well, see my post titled "IOException When
> Launching Appplication (Eclipse 3.1RC2+)" for more information (or goto
> http://www.eclipse.org/newsportal/article.php?id=7727&gr oup=eclipse.tools.cdt#7727
> if you use the web interface). Also refer to
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=102043 for the bugzilla
> bug report that I filled. Unfortunately there does not appear to be a
> workaround (other than dropping back to Eclipse 3.1RC1), however, I am
> glad someone else was able to confirm this.
>

I'm not sure if this is exactly the same bug, but it is very similar. If
I get output, it is always complete. If not, I don't see anything.
How did you get to see exceptions?

Steffen
Re: No console output Eclipse 3.1/CDT 3.0/Cygwin [message #148165 is a reply to message #148162] Tue, 05 July 2005 07:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: j_apter.hotmail.com

The exceptions show up in the .log file in the workspace/.metadata
directory.
Re: No console output Eclipse 3.1/CDT 3.0/Cygwin [message #148168 is a reply to message #148165] Tue, 05 July 2005 07:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: steffen.heinzl.informatik.fh-fulda.de

"DaCypher" <j_apter@hotmail.com> schrieb im Newsbeitrag
news:a8b56a444d5ad131c60cfae4b6a2735b$1@www.eclipse.org...
> The exceptions show up in the .log file in the workspace/.metadata
> directory.
>
Thanks.
I always get the following exception, even if the output is correct:

!ENTRY org.eclipse.debug.core 4 120 2005-07-05 13:27:22.169
!MESSAGE Error logged from Debug Core:
!STACK 0
java.io.IOException: Das Handle ist ung
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:CDT 3.0 RC1 Indexer Problem
Next Topic:Does the stable release work with Eclipse 3.1?
Goto Forum:
  


Current Time: Thu May 08 23:23:24 EDT 2025

Powered by FUDForum. Page generated in 0.06307 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top