Re: OpenGl again.
- Posted by Chris Hickman <cdh at MAIL.ALA.NET> Jun 10, 1999
- 416 views
[To Paul] I downloaded a copy of your OpenGL wrapper today and tried to find the problem. The crash seems to occur upon returning from the Display() function which is used as a callback. I noticed from Cube.c that Display(), Reshape(), and Keyboard() are all of the type VOID meaning that Glut isn't expecting a return value. The insistance by call_dll() that *function* must be called and for it to return a value might be causing the stack to become corrupted. That could cause the program to jump to a bad address when a machine code RET pops one off the stack, causing the "Invalid Instruction" error. [To Rob] What do you think? Am I way off here? If not, any chance of a fix? Thanks, Christopher D. Hickman