[quote="Nitrogen"]It's probably nothing to do with the actual OpenGL calls being made, but rather, with the ]

I thought maybe that Lazarus/Freepascal wasn't calling the Initialization and Finalization sections of the GL and GLU pas files as breakpoints don't stop the program there.

So I added the

LoadOpenGL( GLLibName );
LoadGLu( GLuLibName );

and

FreeGLu;
FreeOpenGL

calls around running the main program but it still crashes

Any ideas?

cheers,
Paul.