Mail Archives: djgpp/1996/05/20/12:12:20
Hafiz Awang Pon (004277a AT news DOT acadiau DOT ca) wrote:
: I am having this problem with my graphics engine:
: 1) when i run the program, it works allright for
: a while, i can move in my environment, look up,
: down, etc. Then after a while, my hard drive starts
: operating for every action i performed in the
: environment (if i'm not doing anything, hard
: drive light isn't on, but when i instruct the engine
: to do something, the light is on), i guess it's just
: doing some paging. Then one of my biggest nightmare
: occurs. my programs exited with a page fault. Anyone
: know why this is happening. I suspect that it has
: something to with paging or protected mode, but i
: do not have much experience with both.
I could certainly be wrong here, since I know nothing about your program,
but is it possible that you are trying to use an uninitialized pointer?
: 2) With the same program, i sometimes get a floating
: point exception error and sometimes i don't,
: what on earth is happening?
Most of my floating point errors come from dividing by zero somewhere or
maybe trying to take the square root of a negative number.
JL
- Raw text -