Solution To Crash-On-Quit

I know the solution to the crash-on-quit errors people are having.

As one person said, if you call glutIdleFunc(NULL); it will prevent the crash-on-exit. So the answer is simple:
call glutIdleFunc(myIdleFunc); and right before the end of main() put glutIdleFunc(NULL);

It works.

Well as I said in my post… If osx has been installed (and even removed) a dodgy rave extension is put in the os9 (or whatever) system folder. Remove this and all is fine. (advice from apple)