From: "Tim Van Holder" To: Cc: "Eli Zaretskii" Subject: Re: freopen/_creat(w2k) interaction [was: Re: Build problems] Date: Thu, 20 Sep 2001 19:10:08 +0200 Message-ID: <000d01c141f7$19be1620$33f8e0d5@pandora.be> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 In-Reply-To: <1659-Wed19Sep2001164311+0300-eliz@is.elta.co.il> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > May I suggest, once again, to step with a debugger into the affected > code and see what exactly fails there, and how? It can't be terribly > hard to find the problem, or at least come up with some information > that will allow to guess what might be the reason. I just tried that again, and remebered why the 'debug it' approach won't work. The problem relies on a subprogram getting FD 3 or 4 assigned, but if you run the debugger, IT will get FDs 3 and 4 (the subprogram usually starts at FD 8 or so). So the issue might be manifesting in the debugger, but you won't be able to debug it there. I'll try to get a minimal program put together over the weekend (annoyingly, a program that fopen()s a couple files and fprintf()s to them does not show any problems), and then add printfs to it (and libc) to (hopefully) catch the place where things go wrong.