From: bbiker Date: 2007-10-25T13:30:07+09:00 Subject: Re: windows-api-0.2.0/lib/windows/api.rb:211: [BUG] Segmentation fault On Oct 24, 7:00 pm, Daniel Berger wrote: > aidy.le...@googlemail.com wrote: > > Hi, > > > I am attempting to use ruby 186rc1 one click installer on Windows > > Vista and I am getting this error: > > > c:/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.0/lib/windows/api.rb: > > 211: [BUG] Segmentation fault > > ruby 1.8.6 (2007-09-24) [i386-mswin32] > > > Has anyone ever experienced this error or can suggest a fix? > > That's coming from win32-api. The line is simply API.new(...). By any > chance did you build win32-api from source? Or did you install the > prebuilt gem? If you built from source, what compiler did you use? > > Thanks, > > Dan This may not help the OP, info provide just in case. The problem may be related to Vista or as you mentioned the gem was built by the OP rather than installed. Both win32-api and windows-api work fine on Windows XP. C:\Documents and Settings\Owner>gem query -n api *** LOCAL GEMS *** win32-api (1.0.3) A superior replacement for Win32API windows-api (0.2.0) An easier way to create methods using Win32API C:\Documents and Settings\Owner>ruby -v ruby 1.8.6 (2007-09-24 patchlevel 111) [i386-mswin32] C:\Documents and Settings\Owner>irb irb(main):001:0> require 'win32/api' => true irb(main):002:0> require 'windows/api' => true