[wxPython-users] wxPyAssertionError...

Robin Dunn robin at alldunn.com
Thu Mar 8 17:43:46 PST 2007


Stefan Holmgren wrote:
> Hi,
> The exception below happens sometimes (not very often) in out application.
> We are using a wxDC...
> I just wonder what it depends on... ("m_refData->m_count > 0" failed?)
> 
> Using python 2.3 and wxPython 2.4.2.4
> 
> ----- exception -----
> ExcType: wxPython.wxc.wxPyAssertionError,
> ExcVal: C++ assertion "m_refData->m_count > 0" failed in 
> e:\Projects\wx2.4\src\common\object.cpp(322): invalid ref data count,
> ExcTb: '  File "Layout.pyo", line 5003, in run\n  File "Layout.pyo", line 
> 5049, in drawDynamicObjects\n  File "Layout.pyo", line 2800, in 
> drawDynamic\n  File "wxPython\\gdi.pyo", line 778, in SetBrush

My guess is that you are trying to use a brush after it has been 
deallocated, perhaps a bug in the refcounting.  Or it could be that 
there are so many references that the m_count integer is wrapping around 
to a negative number.  Try to reproduce this in a small sample app.

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





More information about the wxpython-users mailing list