This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
RE: c++filt causing flashing console windows
- From: Øyvind Harboe <oyvind dot harboe at zylin dot com>
- To: "'Andrew Haley'" <aph at redhat dot com>
- Cc: <java at gcc dot gnu dot org>
- Date: Tue, 9 Sep 2003 10:51:08 +0200
- Subject: RE: c++filt causing flashing console windows
> > Flashing isn't a very accurate technical term, I guess. :-) >
> > When a GCJ application compiled with w/-mwindows
> > launches a console application (e.g. addr2line), a console
> > window is created for that application.
>
>But addr2line isn't a console application; it simply writes
>to stdout. The window shouldn't be created.
You're right.
javaw does not behave this way.
1) Running "javaw -cp . Silly" causes no window to flash when addr2line
is in
the path.
2) Running this app "\thisiscool-gcc\gcc-3.3\bin\gcj --main=Silly
Silly.java -mwindows",
does cause a console window to flash.
public class Silly
{
public static void main(String[] args)
{
try
{
Runtime.getRuntime().exec("addr2line");
} catch (IOException e)
{
e.printStackTrace();
}
System.out.println("wee");
}
}
Øyvind