Displaying 1 result from an estimated 1 matches for "clearitem".
Did you mean:
clearitems
2010 Apr 03
0
FXlistBox.fillItems() segmentation fault - Found Work-around
As my prior posts show, I was getting very random segmentation faults when repeatedly clearing items from a listbox and then repopulating the items. I was using the following statements:
mylistbox.clearItems()
mylistbox.fillItems(new_list)
This would work for awhile, but after enough iterations of clearing and replacing the items in the listbox it would segmentation faults at the .fillItems call.
I found a workaround. If instead, I do:
mylistbox.clearItems()
new_list.each { |item| mylistbox.append...