Forum: FXRuby fillItems() method - segmentation fault solved

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
0c320fd6aa6c9c21c4a1d26507a5c072?d=identicon&s=25 Alex D. (deke)
on 2010-03-31 03:17
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.

This topic is locked and can not be replied to.