Error in Vista

When creating a ruby script (using Watir) on XP then using
rubyscript2exe.rb to create it as an EXE, I receive the following error
on the Vista machine:
C:\Users\Bob.Smyph\Documents>Ruby AccessWeb.rb
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:76:in
initialize': GetProcAddress: SetConsoleCommandHistoryMode or SetConsoleCommandHistoryModeA (RuntimeError) from c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:76:innew’
from
c:/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.6.2/lib/windows/console.rb:76
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.1/lib/win32/process.rb:6
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir/ie-process.rb:1
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.3/./watir.rb:47
from
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in
gem_original_require' from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:inrequire’
from AccessWeb.rb:1

Any help would be greatly appreciated.

-bobsmyph

GetProcAddress is a call that dynamically loads a dll and gets you a
pointer to the named entry point. SetConsoleCommandHistoryMode looks
like an undocumented function, and subject to anything that the folks in
Redmond choose to do to it. I’m guessing that it disappeared in Vista.

On Aug 10, 2:02 pm, “Nation, Carey” [email protected] wrote:

[mailto:[email protected]]
initialize': GetProcAddress: SetConsoleCommandHistoryMode orgem_original_require’
c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in
from

Posted viahttp://www.ruby-forum.com/.- Hide quoted text -

  • Show quoted text -

rubyscript2exe does not work with ruby-1.8 or later.

It appears that it is no longer maintained … sorry to say.

If you are on Windows then use ‘ocra’. Works great with all versions
of Ruby.

Try ‘crate’ for other platforms … I have not tried it.

Hope that this helps.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs