Error after upgrading to -- ruby 1.9.2p136 (2010-12-25) [i386-mingw32]
21 views
Skip to first unread message
Phani
unread,
Jan 5, 2011, 6:59:36 AM1/5/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Vapir
Hi Team,
Have done an upgrade of Ruby recently to the latest patch level and
installed Vapir & its associated dependencies. Pls take a look at the
irb output -
Any suggestions to bypass this and get going? Pls let me know if you
need any more information to debug this.
--
>> require "vapir"
=> true
>> ie = Vapir::IE.new
TypeError: unable to resolve type 'WNDENUMPROC'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/ffi-1.0.4/lib/ffi/
types.rb:4
5:in `find_type'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/ffi-1.0.4/lib/ffi/
library.rb
:287:in `find_type'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/ffi-1.0.4/lib/ffi/
library.rb
:116:in `block in attach_function'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/ffi-1.0.4/lib/ffi/
library.rb
:116:in `map!'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/ffi-1.0.4/lib/ffi/
library.rb
:116:in `attach_function'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-common-1.7.1/
lib/vapir
-common/win_window.rb:50:in `attach'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-common-1.7.1/
lib/vapir
-common/win_window.rb:243:in `<module:WinUser>'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-common-1.7.1/
lib/vapir
-common/win_window.rb:186:in `<class:WinWindow>'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-common-1.7.1/
lib/vapir
-common/win_window.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-ie-1.7.1/lib/
vapir-ie/
modal_dialog.rb:1:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-ie-1.7.1/lib/
vapir-ie/
ie-class.rb:4:in `<top (required)>'
from <internal:lib/rubygems/custom_require>:29:in `require'
from <internal:lib/rubygems/custom_require>:29:in `require'
from E:/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/vapir-ie-1.7.1/lib/
vapir-ie.
rb:25:in `<top (required)>'
from (irb):2
from E:/ruby-1.9.2/bin/irb:12:in `<main>'>>
--
Ethan
unread,
Jan 6, 2011, 12:00:39 PM1/6/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to va...@googlegroups.com
gem uninstall ffi
gem install ffi -v 0.5.4
Thanks for the bug report, I will have a look into this in order to get vapir working with the latest FFI.
FFI version 0.6.* works fine but there are some issues. 0.5.4 is the last known release that seems to work completely correctly. Hopefully 1.0.* will fix the issues of 0.6.*.