noreply at rubyforge.org
2006-Nov-29 23:47 UTC
[Wxruby-development] [ wxruby-Bugs-6972 ] Wx::ListCtrl will crash if item added before insert_column called
Bugs item #6972, was opened at 2006-11-29 23:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6972&group_id=35 Category: Incorrect behavior Group: None Status: Open Resolution: None Priority: 2 Submitted By: Alex Fenton (brokentoy) Assigned to: Kevin Smith (qualitycode) Summary: Wx::ListCtrl will crash if item added before insert_column called Initial Comment: If Wx::ListCtrl has been created with Wx::LC_REPORT style (to show multiple columns and rows, with optional icon), it will SEGV if insert_item is called before insert_column is called. Doing this (inserting an item before inserting a column) in user code is of course incorrect, but WxRuby should signal this mistake more courteously than by crashing. The relevant line thrown in the crash is: wxListMainWindow::InsertItem at ../src/generic/listctrl.cpp:4541 wxColWidthInfo *pWidthInfo = m_aColWidths.Item(item.GetColumn()); ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=6972&group_id=35
Seemingly Similar Threads
- Resizing a ListCtrl
- Working with ListCtrl and ListItem
- [740] trunk/wxruby2: API - Make ListCtrl#get_item return a ListCtrl item corresponding to a row and
- [763] trunk/wxruby2/doc/textile/listctrl.txtl: Warn about a potential mistake using the API that may cause a crash
- Filling Wx::ListCtrl with contents