This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]