[fxruby-users] FXTableItem.new segmentation fault

Philippe Lang philippe.lang at attiksystem.ch
Mon Sep 22 03:09:37 EDT 2008

Your program is running just fine on my computer, for over 220 seconds now.
I'm using:
- Windows XP SP2
- ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32]
- fxruby (1.6.14)


De : fxruby-users-bounces at rubyforge.org [mailto:fxruby-users-bounces at rubyforge.org] De la part de Tim Smith
Envoyé : vendredi, 19. septembre 2008 22:32
À : fxruby-users at rubyforge.org
Objet : [fxruby-users] FXTableItem.new segmentation fault

Does the following code crash for anyone else?  My app is unpredictably crashing with a segmentation fault, which I can sometimes reproduce with this contrived test case.


require 'fox16'; include Fox
start = Time.now
count = 0
items = []
while true
  28125.times {|i|
    items[i] = FXTableItem.new ''
  count += 1
  puts "#{count}, after #{Time.now - start} seconds"


The eventual error:


c:/program files/ruby/lib/ruby/gems/1.8/gems/fxruby-1.6.16-x86-mswin32-60/lib/fox16/kwargs.rb:2367: [BUG] Segmentation fault
ruby 1.8.6 (2007-09-24) [i386-mswin32]


I've had this code crash on XP and Vista (but not Linux), often in under a minute, though not always.  Does anyone know what might be going on?


Thanks for any help,


Tim Smith

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080922/7fd5c494/attachment.html>

More information about the fxruby-users mailing list