From: Kevin S. <kev...@ya...> - 2001-09-06 15:44:31
|
--- Takaaki Tateishi <tt...@ja...> wrote: > I've added Browser#column_widths(ary) and made > test/browser.rb as a sample. But if the number of columns is > different from the length of array `ary', Ruby/Fltk causes the > segmentation fault. I just fixed this. There was a problem with how we were setting the length of the array in our column_widths method. I haven't looked at the FLTK source code--does Fl_Browser malloc the initial array, or is it static? Right now, if the user passes [] to column_widths, and then passes some other array, we would never free the earlier one, right? One option would be that if the user passes [], we would pass a static array (static int empty[2] = {0};) instead of malloc'ing it. Kevin __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com |