From: Lyle Johnson Date: 2007-12-11T01:14:33+09:00 Subject: Re: FXRuby Segmentation fault On Dec 10, 2007 9:32 AM, Ernst Tanaka wrote: > Found another little clue > > @bs_tab = ["Buy", "Sell"] > @bs = -1 > unless @horizontalframe41 > FX::HorizontalFrame.new(@horizontalframe4){|w| > @horizontalframe41=w > w.wdg_name='horizontalframe41' > w.backColor=Fox::FXRGBA(0,0,0,255)} > FX::ComboBox.new(@horizontalframe41){|w| > @w_bs=w > w.wdg_name='w_bs' > w.fillItems(@bs_tab) > w.backColor=Fox::FXRGBA(0,0,0,255) > w.textColor=Fox::FXRGBA(0,255,0,255)} > @horizontalframe41.create > end > @w_bs.currentItem = 0 if @bs == 1 > @w_bs.currentItem = 1 if @bs == -1 > > It seems that the "w.fillItems(@bs_tab) is the cause of many of my > errors. What is @bs_tab? It should be an array of strings. See what happens if you replace the line: w.fillItems(@bs_tab) with this: @bs_tab.each { |s| w.appendItem(s) } Hope this helps, Lyle