Re: [PyOpenGL-Users] WindowsError: exception: access violation reading 0x00000000
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@vr...> - 2008-06-06 20:46:20
|
jrb wrote: > i'm running the latest PyOpenGL (pyopengl-3.0.0b2-py2.5.egg) on the > latest windows python (2.5.2) and am getting access violations when > running the simplest examples. they occur when using the keyboard > handler function (set using glutKeyboardFunc and even if it does nothing > but return), mouse handler (set using glutMouseFunc), and when using > glutFullScreen. they all crash with: > > Traceback (most recent call last): > File "./simple-spheres.py", line 93, in <module> > glutMainLoop() > WindowsError: exception: access violation reading 0x00000000 > > crashing in the glutMainLoop after hitting a key or clicking the mouse > or just right away in the case of the glutFullScreen call. > > anybody know what's going on or what i'm doing wrong? > There was a bug in the Win32 GLUT callback registration. Turns out they use C calling convention despite the functions all being Win32 calling convention. Latest CVS should solve the problem. HTH, Mike -- ________________________________________________ Mike C. Fletcher Designer, VR Plumber, Coder http://www.vrplumber.com http://blog.vrplumber.com |