Segmentation fault when using FXRuby on 1.8.0

R

Ruby Ruby

I am trying to run a simple FXRuby sample program from
a tutorial by Lyle Johnson. I am getting the following
error:

fxr.rb:12: [BUG] Segmentation fault
ruby 1.8.0 [2003-05-26] [i386-mswin32]

abnormal program termination

Here is a cut/paste from the tutorial:

require 'fox'

include Fox

theApp = FXApp.new

theMainWindow = FXMainWindow.new(theApp, "Hello")

theButton = FXButton.new(theMainWindow, "Hello,
World!")
theButton.tipText = "Push Me!"
iconFile = File.open("pbr.jpg", "rb")
theButton.icon = FXJPGIcon.new(theApp, iconFile.read)
iconFile.close
theButton.connect(SEL_COMMAND) { exit }

FXTooltip.new(theApp)

theApp.create

theMainWindow.show

theApp.run

Any help will be appreciated.

Thank you

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
 
D

Dmitry V. Sabanin

I am trying to run a simple FXRuby sample program from
a tutorial by Lyle Johnson. I am getting the following
error:

fxr.rb:12: [BUG] Segmentation fault
ruby 1.8.0 [2003-05-26] [i386-mswin32]

abnormal program termination
8-<
That code works fine for me, my versions:
Ruby: 1.8.0 (2003-08-10) [i386-linux]
Fox-Toolkit: 1.0.42
FXRuby: 1.0.25

Fox and FXRuby were compiled by myself. As I see from your ruby version
compilation date, you should update it to a more recent release, like 1.8.0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,744
Latest member
CortneyMcK

Latest Threads

Top