www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/03/28/18:39:33

Date: Tue, 28 Mar 1995 13:56:27 -0800 (PST)
From: Darwin Hawes <hawes AT physics DOT ubc DOT ca>
To: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: getch

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 -


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