Displaying 1 result from an estimated 1 matches for "filltable2".
Did you mean:
filltable
2005 Feb 18
5
FXTable segfaults after multiple setTableSize calls
...LL_Y)
@table = FXTable.new(mainFrame, nil, 0, LAYOUT_FILL_X|LAYOUT_FILL_Y)
goButton = FXButton.new(mainFrame, " Go method 1")
goButton.connect(SEL_COMMAND) { fillTable }
goButton2 = FXButton.new(mainFrame, " Go method 2")
goButton2.connect(SEL_COMMAND) { fillTable2 }
end
# fails after 2 to 15-20 iterations
def fillTable
@table.setTableSize(TABLE_SIZE, 1)
(0...TABLE_SIZE).each do |r|
@table.setItemText(r, 0, "#{r}")
end
@table.setFocus
end
# seems to require more iterations, but still fails
def fillTable...