Date: Wed, 14 Feb 2001 13:40:17 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: "Michael N. Kondaurov" cc: DJGPP AT delorie DOT com Subject: Re: RsxNTDJ console - kbhit & getch not work ? In-Reply-To: <2D0B2727177@csd.inp.nsk.su> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 14 Feb 2001, Michael N. Kondaurov wrote: > I use DJGPP for creating Win95 applications to work in DOS box. > Now I want to create Win95 console application because I need to use > Win95 Com port driver ( CreateFile ... ets). > > But when I call to "kbhit", "getch" - my program crash: > > Exception at .... > Application got signal SIGSEGV. Did you make sure the program gets built as a console application? I don't remember the details, but IIRC this requires special switches during compilation and/or linking, and perhaps also special libraries. (Sorry for being so vague.)