[fxruby-users] FXTableItem.new segmentation fault

Tim Smith tsmith at tektone.net
Fri Sep 19 18:21:19 EDT 2008

I don't think so.  For that process, Task Manager shows 38 Handles, 1
USER Object, and 5 GDI Objects on my XP machine, and 72 Handles, 1 USER
Object, and 4 GDI Objects on my Vista machine.  None of those numbers
seem to increase before it crashes.


Tim Smith



From: fxruby-users-bounces at rubyforge.org
[mailto:fxruby-users-bounces at rubyforge.org] On Behalf Of Meinrad Recheis
Sent: Friday, September 19, 2008 5:29 PM
To: fxruby-users at rubyforge.org
Subject: Re: [fxruby-users] FXTableItem.new segmentation fault


are you running out of GDI handles?


On Fri, Sep 19, 2008 at 10:31 PM, Tim Smith <tsmith at tektone.net> wrote:

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:


/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

fxruby-users mailing list
fxruby-users at rubyforge.org


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/fxruby-users/attachments/20080919/455301a4/attachment-0001.html>

More information about the fxruby-users mailing list