I had an FXRuby app that was randomly segfaulting at the following code
line:
listbox.clearItems()
listbox.fillItems(some_string_array)
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:
listbox.clearItems()
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.
--Alex
on 2010-03-31 03:17
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.