Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Win32 Question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/