lesson10
Hi
I can''t run or compile NeHe''s 10th tutorial (walking around in a 3d world ...)!
If i try to run a compiled version, a get an error and my pc crashes. If i compile the code myself, i get the message:
Exception der Klasse EZeroDivide
Gleitkommadivision durch Null (sorry but i''m using the german borland c++ 3 compiler)
and a box with many hex numbers opens (i thing borland calls it cpu-box). if i now close the compiler i have to stop the debugger and the pc chrashes.
Does someone know a solution?
by the way: how to show the fps?
Hmmm....
Well, I don''t speak German, and BabelFish''s translation is less than perfect:
Exception of the class EZeroDivide floating decimal point division by zero
But, it looks like somewhere in the code there''s a division, and the code isn''t making sure that the denominator isn''t zero before doing so.
However, looking through the code, the only division I see is by a constant of 20.0f:
walkbias = (float)sin(walkbiasangle * piover180)/20.0f;
I don''t see any division by a variable.
So, have you tried stepping through the code and seeing what line of code is giving you the problem? It could be a problem with a call outside of your program, like to a System DLL, and not with the code itself.
Well, I don''t speak German, and BabelFish''s translation is less than perfect:
Exception of the class EZeroDivide floating decimal point division by zero
But, it looks like somewhere in the code there''s a division, and the code isn''t making sure that the denominator isn''t zero before doing so.
However, looking through the code, the only division I see is by a constant of 20.0f:
walkbias = (float)sin(walkbiasangle * piover180)/20.0f;
I don''t see any division by a variable.
So, have you tried stepping through the code and seeing what line of code is giving you the problem? It could be a problem with a call outside of your program, like to a System DLL, and not with the code itself.
yes i tried to delete all the code which is needed for moving because i only want to have the file loading. But this does not case the problem.
Now to the dll:
I can run all the other compiled tutorials which i downloaded with the source for vc++.
Can maybe the dlls of my os (win2kpro no sr)or of my graficscard dirver (nvidia''s riva128 reference driver for nt4) make the problem?
Now to the dll:
I can run all the other compiled tutorials which i downloaded with the source for vc++.
Can maybe the dlls of my os (win2kpro no sr)or of my graficscard dirver (nvidia''s riva128 reference driver for nt4) make the problem?
Hi nika!
I don''t think your Hardware/OS combination is the reason for your problem. I had *exactly* the same configuration before christmas, and lesson10 worked well (I only tried the compiled version anyway). (By the way - now it works better on my system :-)).
I don''t think your Hardware/OS combination is the reason for your problem. I had *exactly* the same configuration before christmas, and lesson10 worked well (I only tried the compiled version anyway). (By the way - now it works better on my system :-)).
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement