Mail Archives: djgpp/1999/10/13/14:11:58
On Tue, 12 Oct 1999, Mohamed Saad wrote:
> i tried to replace exit(1) with abort() and it
> exited with no problem (but i can't use it! because it
> outputs the stack contents and stuff!!)
What happens if you call _exit(1) instead of exit(1) ?
> now what does exit(1) do to freeze the program??
The way to really understand this is to download the library sources,
extract the source of the exit() function, and add some debugging
print-outs there that will show where does it get stuck. Then post the
offending code fragment from exit() here, and someone will help you
figure it out.
The most probable cause is some bug in your program, but the question is
where is it?
> (Note: I have not hooked any interrupts!! the
> program is runnin in 640*480*65k colors... in case
> this helps!)
Did you use any libraries, like Allegro? If so, tell which ones you
used, and what functions from there are you calling.
- Raw text -