A bug? FXRuby 1.4.6 segment fault when FXFileDialog.new

FXRuby 1.4.6 works fine except I call FXFileDialog.new.

My enviroment is :
windows 98
cygwin version 2.427
ruby 1.8.1 (2003-12-25)

The program I ran is foxhello-1.4.6.rb :

#require ‘rubygems’
#require_gem ‘fxruby’
require ‘fox14’

include Fox

theApp = FXApp.new

theMainWindow = FXMainWindow.new(theApp, “Hello”)
theDialog = FXFileDialog.new(theMainWindow, “filedialog”) # this is line
10

The result is :

$ ruby foxhello-1.4.6.rb
foxhello-1.4.6.rb:10: [BUG] Segmentation fault
ruby 1.8.1 (2003-12-25) [i386-cygwin]

I also run the same program using FXRuby 1.2.6, it works fine.
Is this is a bug of FXRuby 1.4.6?

Best ragards,

uncutstone

uncutstone wu wrote:

FXRuby 1.4.6 works fine except I call FXFileDialog.new.

My enviroment is :
windows 98
cygwin version 2.427
ruby 1.8.1 (2003-12-25)

Can’t reproduce it with fxruby-1.4.6 on ruby-1.8.4, linux.

Maybe upgrading your ruby will give some useful information?

Joel VanderWerf wrote:

uncutstone wu wrote:

FXRuby 1.4.6 works fine except I call FXFileDialog.new.

My enviroment is :
windows 98
cygwin version 2.427 —wrong, it was 1.5.10-3
ruby 1.8.1 (2003-12-25)

Can’t reproduce it with fxruby-1.4.6 on ruby-1.8.4, linux.

Maybe upgrading your ruby will give some useful information?

After upgraded cygwin to 1.5.19-4, ruby to 1.8.4 (2005-12-24)
[i386-cygwin], still got segment fault.

Maybe I need upgrade my OS from windows 98 to windows xp.

Thanks,

uncutstone