c++filt causing flashing console windows

Øyvind Harboe oyvind.harboe@zylin.com
Tue Sep 9 08:51:00 GMT 2003


> > 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



More information about the Java mailing list