[wxruby-users] Segmentation Fault : [i386-mswin32] in wxruby

John Griffiths lists at ruby-forum.com
Thu Jan 15 08:44:52 EST 2009


had this problem on some database calls with Windows XP today too...

Ruby 1.8.6
WxRuby 1.9.9
Windows Service Pack 2

What I had to do was fire the Garbage Collector before my mySQL calls

  GC.start
  res.each do |row|
    ...
  end

And then call the rows specifically by number => row[1].to_s

I was using row["name"] with res.each changed to res.each_hash, but it 
just kept flipping out with Segmentation Faults so i switched to the 
more simpler method above.

After which it remained stable.

Also got problems with NET::SFTP returning Segmentation Faults for 
Upload() calls, Ok with Connect() or Dir.foreach calls, but swapped that 
out with Putty's SCP for quickness.


-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list