wxListCtrl GetItem/SetItem crash

Richard Cooper wrote:

In an application I am working on I have the following requirements:

* I have a listCrtl which has quite a lot of data in it
* I need to occasionally DeleteAllItems and repopulate it
* I need to alter the colour and font of some of the list items

I produced a minimal sample (below) which shows my problem. If I don't call
doVisuals() then it works fine, but if I do call doVisuals() to change the
colour and font then something about doing GetItem/SetItem means that some
subsequent call to DeleteAllItems will cause a memory access violation if
there is lots of data in the list.

There is some discussion going on in wx-dev about this, or something similar. We should have a fix soon. (Of course with that many items you'll be much better off using the virtual style anyway. :slight_smile:

ยทยทยท

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