fillItems() method - segmentation fault solved

I had an FXRuby app that was randomly segfaulting at the following code


It would segfault when executing .fillItems, but the segfault was
unpredictable and seemingly without reason. After weeks of struggle, I
discovered that if instead I do:

some_string_array.each { |item| listbox.appendItem(item) }

the code works fine and never segfaults. So, the issue seems to be
somewhere in the .fillItems method.

Anyway, I thought I’d post this in case others experience problems with
the .fillItems method.