It's probably nothing to do with the actual OpenGL calls being made, but rather, with the link between Delphi/Lazerus and the opengl32.dll file.

Normally these access violations also occur when you forget to bind the opengl functions in delphi with their external addresses in the DLL file.