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


Ranjit Mathew writes:
 > Andrew Haley wrote:
 > > It says above that "the child process may nor may not create its own
 > > console/tty."  Is it possible to build c++filt and addr2line in such a
 > > way that they do not try to create their own console/tty if the parent
 > > process doesn't have one?  Or is this an unfixable Windows bug?
 > 
 > Rather than touching c++filt or addr2line, a simpler fix would be
 > to fix the call to CreateProcess( ) in java/lang/natWin32Process.cc
 > such that it asks Windows to not create a console for the child
 > process if it itself is a GUI application.

Sounds good to me.

 > IMHO, if the current process is a GUI application, the spawned
 > process (if it is a console application) should be created with
 > CREATE_NO_WINDOW set in dwCreationFlags in the call to
 > CreateProcess( ):
 > 
 > http://msdn.microsoft.com/library/en-us/dllproc/base/createprocess.asp
 > 
 > As noted the MSDN documentation (as well as the JDK bug referenced
 > earlier), this is not supported (ignored?)  on Win 95/98/ME. But
 > that should be OK I guess.

Sure; they're obsolete AFAIK.

Andrew.


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