Mail Archives: djgpp/1995/03/28/18:39:33
This is a bit of an odd error. The following bit of source code either
segmentation faults, or reboots the computer:
#include <conio.h>
.
.
.
putch('\n');
.
.
.
A putch('q'), however does not.
This is in a relatively large program, which hooks the serial port, and
also displays to the screen using the routines in pc.h. The code worked
fine until a little while ago, when it suddenly started crashing on
newlines being output. I can't duplicate the problem in a smaller program.
I'm running version 1.12m2 in non DPMI mode.
##########=========================-------------------------------------*
# Darwin Hawes <hawes AT physics DOT ubc DOT ca> |
I This is a typical net.posting. Any resemblance to reality is I
| strictly coincidental. #
*-------------------------------------=========================##########
- Raw text -