delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/01/12:26:27

X-Originating-IP: [24.27.76.111]
From: "Tom Hutto" <huttothomas AT hotmail DOT com>
To: <djgpp AT delorie DOT com>
References: <OE2s4nLLW94lJ7tUUQD00003408 AT hotmail DOT com> <003001c0435b$3e965b60$1e806f83 AT quns DOT cam DOT ac DOT uk>
Subject: Re: Runtime mystery
Date: Wed, 1 Nov 2000 11:24:01 -0600
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Message-ID: <OE34F58tP9DLf4bg5Xm000008cc@hotmail.com>
X-OriginalArrivalTime: 01 Nov 2000 17:24:28.0472 (UTC) FILETIME=[96BCF380:01C04428]
Reply-To: djgpp AT delorie DOT com

Original post is at bottom of this.

I checked. I did have "\n" in the printf.

When I run this from the DOS prompt, no error messages show.  I am
merely tossed out of the program to the DOS prompt.

The source is proprietary.  I can't show it.  I would have to cobble
something that duplicates the problem.  Kind of makes it tough to ask
intellegent questions :-(  Furthermore, if I could duplicate the problem
in a small program then I could fix it myself, nicht war?

When the act of loading a program into the debugger fixes a runtime
problem, is the 'fix' usually due to changed memory alignment due to the
fact that the target is loaded into a different place in memory?




----- Original Message -----
From: "Murray Rogers" <mwr21 AT cam DOT ac DOT uk>
To: <djgpp AT delorie DOT com>
Sent: Tuesday, October 31, 2000 10:54 AM
Subject: Re: Runtime mystery


| is your program actually crashing?  If so, try a "\n" at the end of
the
| printf to make sure it flushes the buffer.
|
|
| ----- Original Message -----
| From: Tom Hutto <huttothomas AT hotmail DOT com>
| Newsgroups: comp.os.msdos.djgpp
| To: DJGPP <djgpp AT delorie DOT com>
| Sent: 30 October 2000 18:47
| Subject: Runtime mystery
|
|
| > What's going on here?  The my program does not work, so I try to
debug
| > it.  But gdb hides the error I'm trying to find.
| >
| > Maybe I don't know what to look for, but I can't find this problem
| > referenced in the FAQ nor the archives.  I have looked though.
| >
| > In MYPROG.C, modify main() so that it has printf("Hello world"); as
its
---------->>>                 correction:     ptintf("HELLO World\n");
| > first executable statement.
| >
| >
| > ReCompile MYPROG using gcc via a makefile (30 something *.c and *.h
| > files)
| > get no warnings no errors
| > link step gives no warnings no errors
| >
| > At the DOS prompt type MYPROG.EXE and press enter
| > MYPROG prints nothing to the terminal nor to any file that I can
find.
More: -------- DOS prints no error messages. Just dumps me at the
prompt.


| >
| > At the DOS prompt type
| > gdb MYPROG
| > type run at the (gdb) prompt.
| >
| > MYPROG operates as would be expected under 'normal' circumstances.
| >
| > What's going on here?  The pgm does not work, so I try to debug it.
But
| > gdb hides the error I'm trying to find.
| >
| >
| >
| >
| > TIA and Cheers
| > Tom Hutto  thutto AT houston DOT rr DOT com  Houston,Texas USA
| > "If you can't measure it, you can't control it." - Lord Kelvin
| >
| >
| >
|
|

- Raw text -


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