Memory leak in wxPython 2.7 (?)

jmf jfauth at bluewin.ch
Wed Jul 19 11:58:53 PDT 2006


I do not know if this is coming from Python 2.5b2 or wxPython 2.7 on
w2k sp4. I tried both at the same time.
When testing the msg box of one of my app, which is supposed to
display infos about system, Python version, memory and so on, I
got a strange displayed message and a message in my dos window
saying:

swig/python detected a memory leak of type 'wxMemorySize *', no destructor found

Without to much tests, I guess the error is coming from the following code
in my msg box source

txt += os.linesep * 2 + 'Free memory: ' + psiTools.jmintfmt(wx.GetFreeMemory()) 
+ ' bytes'

Jean-Michel Fauth




More information about the wxpython-dev mailing list