FoolyCooly
Registered
I'm really confused. I recently updated to xcode and now my opengl project will not run. I have a c++ class setup to "automate" a lot of the opengl while i play with the shapes etc. glObject square.drawSquare(); type stuff.
However, when executing my code, it compiles fine, i get a "<programName> has exited due to signal 10 (SIGBUS)." and then a generic "bus error" when compiling directly in the terminal. If I block off all the glcommands, like glMatrixMode(), then the program compiles and runs with test strings displaying appropriately, but if i leave even one glcommand open, the program compiles and I get the runtime bus error. When i follow through with the debugger it tells me there is a badexec or something while the debugger sits on some mac assembly. I'm afraid to touch the assembly as the debugger is inside a gl framework header/source file.
The project is a revamp of a cocoa++ file that I am converting to strict c++ using core gl, so calls to create a window or grab the screen or set up gl aren't implemented in the program. But the only glcommands i'm using are the ones to declare and create objects like glColor3f or glBegin()/glEnd() but not to actually display anything and as I've said, the program runs fine without the glcommands inserted.
The program in cocoa, however, runs as always and displays the correct shapes etc. I'm really lost, as I have changed very little in my code, save for the cocoa class and function names and #import to #include, which, compiles fine without gripe. I am not trying to display shapes yet, just get the program to print out "drawing a square" in place of a graphic.
Thanks for any help, FLCL
However, when executing my code, it compiles fine, i get a "<programName> has exited due to signal 10 (SIGBUS)." and then a generic "bus error" when compiling directly in the terminal. If I block off all the glcommands, like glMatrixMode(), then the program compiles and runs with test strings displaying appropriately, but if i leave even one glcommand open, the program compiles and I get the runtime bus error. When i follow through with the debugger it tells me there is a badexec or something while the debugger sits on some mac assembly. I'm afraid to touch the assembly as the debugger is inside a gl framework header/source file.
The project is a revamp of a cocoa++ file that I am converting to strict c++ using core gl, so calls to create a window or grab the screen or set up gl aren't implemented in the program. But the only glcommands i'm using are the ones to declare and create objects like glColor3f or glBegin()/glEnd() but not to actually display anything and as I've said, the program runs fine without the glcommands inserted.
The program in cocoa, however, runs as always and displays the correct shapes etc. I'm really lost, as I have changed very little in my code, save for the cocoa class and function names and #import to #include, which, compiles fine without gripe. I am not trying to display shapes yet, just get the program to print out "drawing a square" in place of a graphic.
Thanks for any help, FLCL