List Info

Thread: Memory leak in wxPython 2.7 (?)




Memory leak in wxPython 2.7 (?)
user name
2006-07-19 18:58:53
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

------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

Memory leak in wxPython 2.7 (?)
user name
2006-07-19 21:22:47
jmf wrote:
> 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

Thanks.  This is happening because SWIG doesn't know what
the 
wxMemorySize is and so is treating it like a class instead
of an 
integer-like value.  I've just corrected this.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java
give you jitters?  Relax with wxPython!


------------------------------------------------------------
---------
To unsubscribe, e-mail: wxPython-dev-unsubscribelists.wxwidgets.org
For additional commands, e-mail: wxPython-dev-helplists.wxwidgets.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )