Hi all,

I'm relatively new to python and pyglet, so I may be confusing things,
but it seems there's a memory leak in ClockDisplay. I've written a
piece of code to demonstrate it (sorry, I could only test it in my
PC).

I'm using Windows. Looking in the Task Manager, i can see the
python.exe process inflating slowly. If i comment the
"self.fps_display.draw()" line, it stops.

Have i forgotten to disable some kind of configuration? I'm running
the program with -OO flags. That's python 2.6 and pyglet 1.1.2.

That's the code:

import pyglet

class App(pyglet.window.Window):
    def __init__(self):
        super(App, self).__init__(width=500, height=500)

        self.fps_display = pyglet.clock.ClockDisplay()

    def on_draw(self):
        self.clear()

        # Comment this line and the leaking stops
        self.fps_display.draw()

    def loop(self):
        pyglet.app.run()


a = App()
a.loop()


Regards,
Michael

--~--~---------~--~----~------------~-------~--~----~
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