Mail Archives: djgpp/1996/06/06/17:12:29
On 6 Jun 1996 a920101 AT zipi DOT fi DOT upm DOT es wrote:
> Hi everybody!
> I am programming a game with DJGPP 2.0, and I'm finding it is a realy
> *great* tool. I have currently written 2500+ lines in C++/Asm, and had no
> problem (except for my own bugs ;). But now I am facing a strange behaviour
> with my program: If I compile it *without* optimizations (-m486 -O3), it
> crashes with a page fault after exiting the game (I mean: you quit playing,
> and then it dumps out a GPF, no problem *while* playing). I find no problem
> when compiling with -m486 -O3, anyway.
> I've debugged the generated code, and I've found that the problem is GCC
> not passing the correct arguments to some functions. I call the function
> with the correct parameter (made sure of this), but it gets a wild one!
> I stopped using the nearptr feature, as this is dangerous, but the problem
> didn't went away...any clue???
>
> Yes, I am using the last version of CWSDPMI and those things...
>
> Any help would be appreciated.
> Thanks in advance.
Do you have function prototypes properly declared before claling any of
the functions?
Hmm.
-Sam
- Raw text -