Memory leak problem (while using tkinter)

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Wed Dec 31 03:52:09 EST 2008


On Tue, 30 Dec 2008 20:21:06 -0800, André wrote:

> I have written a small program (my first Tkinter-based app) to play
> around the idea mentioned on
> http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-
lisa/
> and, in doing so, have encountered a memory leak problem.   I have seen
> mentions on the web of using the delete() method of canvas to prevent
> such problems - which I have tried to do with limited success.  Below is
> the code I wrote; to run it, you will need a small image file
> (I used the one found on http://alteredqualia.com/visualization/evolve/)
> that is saved under "mona_lisa.png".
> 
> Any help would be greatly appreciated.

I don't see anything obvious but that the program is too long and uses 
too much components to be sure that `Tkinter` is the culprit.  Try too 
trim it down to the smallest possible program that still has the problem.

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list