Mail Archives: djgpp/1998/04/16/03:15:35
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 -