delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/16/03:15:35

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Computer freezes after running compiled program twice
Date: Wed, 15 Apr 1998 18:55:19 -0400
Organization: Two pounds of chaos and a pinch of salt.
Lines: 30
Message-ID: <35353AD7.2B97@cs.com>
References: <19980415145008 DOT 25791 DOT rocketmail AT send1e DOT yahoomail DOT com>
NNTP-Posting-Host: ppp228.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

CompMan wrote:
> 
> Hello. I just downloaded the DJGPP compiler and RHIDE and am compiling
> and running programs with them. The main problem I have is that after
> compiling and running the program the first time, I get an error
> message that says "The error was: Permission Denied (EACCES)" That
> doesn't cause my program to fail, but when I try to run the program a
> second time, the computer freezes and I cannot use Ctrl-Alt-Del to
> reboot. I have to use the power switch and turn off then turn on. What
> is the problem?

Does this happen with all programs or just a specific one?  If the
latter, then what does this program do?  Figuring out why the crash
occurs in your program would be a much better way of solving the
problem.

For example, where in your code is the strerror() or perror() function
called that generates the EACCES message?  What file-oriented functions
are you using before that call that might fail?  Are you testing
appropriately for their failure?  Are you using any libraries like
Allegro or GRX that have internal file-handling code which could fail? 
We need more details.  :-)

-- 
---------------------------------------------------------------------
|      John M. Aldrich       |"Men rarely (if ever) manage to dream |
|       aka Fighteer I       |up a god superior to themselves. Most |
|   mailto:fighteer AT cs DOT com   |gods have the manners and morals of a |
| http://www.cs.com/fighteer |spoiled child."    - Lazarus Long     |
---------------------------------------------------------------------

- Raw text -


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