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!