2.8.0 Gtk2: Assert on wxListBox::SetString()
Thomas Zehbe
tz at ingenion.de
Thu Apr 12 00:19:26 PDT 2007
Am Mittwoch, 11. April 2007 14:14 schrieb Vadim Zeitlin:
>
> Can this be reproduce in either controls or widgets sample?
> VZ
Sorry Vadim,
I missed your answer yesterday. I took the listbox sample of the 2.8.3 Gtk
Unicode Version and modified the ecenthandler like this:
void LboxTestFrame::OnListbox(wxCommandEvent& event)
{
int sel = event.GetInt();
m_textDelete->SetValue(wxString::Format(_T("%d"), sel));
wxLogMessage(_T("Listbox item %d selected"), sel);
wxString str(_T("this is new text"));
m_lbox->SetString(sel, str);
}
Exactly the same assert occurs as in my app.
To check I first press the "insert some strings" button and 3 are inserted.
When I select one of them, the assert message occours and the string I
selected before is deleted from the listbox. Hitting the continue button
inserts the new text at the correct position. BTW, the error occours
independent of the item beeing selected.
Hope that helps.
Regards,
Thomas
--
Dipl.-Ing. Thomas Zehbe
INGENION GmbH
Kuhweide 6
31552 Apelern
Fon: 05043 / 40 57 90 4
Fax: 05043 / 40 57 90 7
www.ingenion.de
More information about the wx-users
mailing list