Forum: Ruby A bug? FXRuby 1.4.6 segment fault when FXFileDialog.new

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Uncutstone W. (Guest)
on 2006-05-24 07:29
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
Joel VanderWerf (Guest)
on 2006-05-24 07:41
(Received via mailing list)
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?
Uncutstone W. (Guest)
on 2006-05-24 23:07
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
This topic is locked and can not be replied to.