[APBeta] Interesting find
Paul Rodman
paul at ilanga.com
Sat Nov 29 14:28:09 PST 2008
On Friday I spent most of the day trying to figure out why the code to
draw Saturn in the FOV was causing reproducible hard crashes on
Windows (fine on Mac OS). Eventually by simplifying the (rather
complex math) code and spreading it out over a number of separate
routines, I was able to get it to work.
This is rather disturbing. It would appear to be either a compiler bug
with complex math expressions or some kind of undetected stack
overflow problem. I'm not sure what.
The app is still unstable (i.e. it "randomly" hard crashes), and now
I'm wondering if it has to do with other math code that gets executed
occasionally (e.g. moon/sun position, etc.). This is turning me
prematurely grey. I'll have a look at other bits of "nasty" code this
week and see if I can do the same with them, in the hope that it will
resolve the problems.
Note: this code is virtually unchanged from that in V1.6, which makes
me suspect the compiler.
Paul R.
More information about the APBeta
mailing list