www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/11/00:02:11

Mime-Version: 1.0
To: Dan Chak <chakster AT erols DOT com>, Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
From: Nate Eldredge <nate AT cartsys DOT com>
Subject: Re: CTRL-C runs an infinite loop
Cc: DJGPP <djgpp AT delorie DOT com>
Date: Sun, 10 May 1998 20:54:39 -0700
Message-ID: <19980511035425.AAE4598@ppp107.cartsys.com>

At 03:34  5/10/1998 -0400, Dan Chak wrote:
>Eli Zaretskii wrote:
>> 
>> On Sun, 10 May 1998, Dan Chak wrote:
>> 
>> > I'm having some strange behavior with DJGPP where when I hit Control-C
>> > to break out of my program, I get an infinite loop of the following,
>> > instead of being returned to the dos prompt.
>> 
>> One possibility is that you are overflowing the stack, or otherwise
>> overwriting it.
>> 
>> But for a better answer, please run your program with stderr redirected
>> to a file, and post here the beginning of this infinite loop of crashes.
>> The first two tracebacks hold the important clues about why does it
>> crash, the rest are just the usual DOS/Windows madness.
>> 
>
>This might sound a little silly, but how does one redirect stderr?  I've
>never really used it.  Do I just open a file and reassign it stderr to
>that new file?  I assume it's stderr is pointer to a buffer?  

It's much easier than that; it can be done from the DOS level.

redir -e error.log myprog

`redir' is a utility that comes with DJGPP.

Nate Eldredge
nate AT cartsys DOT com



- Raw text -


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