delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/02/17/11:31:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <4214C6B0.9000205@uklinux.net>
Date: Thu, 17 Feb 2005 16:30:40 +0000
From: Bryan Feeney <bfeeney AT uklinux DOT net>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Win32 Question

Sorry, I know this is a pretty odd question to ask in a forum like this, 
but I'm hoping someone can help.

Basically, I would like to write a GUI (using Delphi & Win32) for a 
Win32 console program. I had hoped I could read and write to the console 
program using pipes. However it appears that you cannot read the 
program's stdout through a pipe (stderr works fine). When I try to run 
it in the MingW32 console, it appears to hang. Clearly MingW32 is 
falling foul of the same pipes problem as I am.

What's puzzling me is that the Cygwin console *isn't* bothered by this 
problem. The program's output appears fine, as if it was running in 
cmd.exe.

Does anyone know what the Cygwin console is doing differently that 
allows it to read and display the program's stdout when MingW32 and my 
app fail?

I think the program in question uses multi-threading, though I'm not 
sure how that would affect things.

Thanks
-- 
Bryan


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019