I'm getting the following error:

Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 295, in 'calling callback function'
  File "C:\Python26\lib\site-packages\pyglet\app\win32.py", line 84,
in _timer_f
unc
    sleep_time = self.idle()
  File "C:\Python26\lib\site-packages\pyglet\app\__init__.py", line
193, in idle

    window.dispatch_event('on_draw')
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
1219, in
dispatch_event
    EventDispatcher.dispatch_event(self, *args)
  File "C:\Python26\lib\site-packages\pyglet\event.py", line 349, in
dispatch_ev
ent
    return getattr(self, event_type)(*args)
  File "bricks.py", line 254, in on_draw
    self.clear()
  File "C:\Python26\lib\site-packages\pyglet\window\__init__.py", line
1215, in
clear
    gl.glClear(gl.GL_COLOR_BUFFER_BIT | gl.GL_DEPTH_BUFFER_BIT)
  File "C:\Python26\lib\site-packages\pyglet\gl\lib.py", line 105, in
errcheck
    raise GLException(msg)
pyglet.gl.lib.GLException: invalid operation


I've coded a callback function that triggers when a song stops
playing:
        syncProc = SYNCPROC(self.SyncCallback)
        BASS_ChannelSetSync(self.channel,BASS_SYNC_ONETIME |
BASS_SYNC_END,0,syncProc,1)

where:
SYNCPROC = WINFUNCTYPE(None, HSYNC, DWORD, DWORD, c_void_p)

It calls the following callback:

    def SyncCallback(self,handle,channel,data,user):
        self.song+=1
        self.PlayMusic()

The error triggers on this callback. From the error it seems that for
some reason the pyglet callback is also being triggered. Any ideas?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to