[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[Cdt-launch-inbox] [Bug 102043] Console Output Does Not Appear When Launching An Application
|
https://bugs.eclipse.org/bugs/show_bug.cgi?id=102043
------- Additional Comments From j_apter@xxxxxxxxxxx 2005-08-16 10:03 -------
Since the process is launched from
org.eclipse.cdt.launch.internal.LocalRunLaunchDelegate.exec() in one thread and
then the output is read from that launched process later in
org.eclipse.cdt.internal.core.model.Binary.openBuffer() in another thread the
data is out of sync (actually, I'm not exactly sure about the thread situation
here, but either way, the output isn't read quickly enough after the application
is launched). Most trivial native applications (such as those mentioned in
comment 0) will finish executing before the read thread gets a change to run and
thus no, or little, output is displayed. However, this doesn't quite explain
why Runtime.exec() does not have this same problem.
A possible solution might be to read from the application's output immediately
after launching it (perhaps even within the Reaper class) and then store the
output in a buffer until someone later reads from the outputstream. Though,
this solution has some obvious problems, it's better than the current situation,
IMO.
Hopefully someone more familiar with this code can take over, or at the very
least, offer some insight.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.