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
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