There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
require 'rubygems' fails for 64Bit Process
When attempting to require 'rubygems' from a 64bit process and error occurs saying that you cannot call the Win32API from a 64bit process.
Bug tracked down to $IRHOME\lib\ruby\site_ruby\1.8\rubygems\config_file.rb
File make explicit use of the Win32API. We replaced this with equivalent ruby code and it works fine. The call is used inside an ELSE block, the IF block above also uses Win32API explicitly for loading under ruby1.9. As we are not running 1.9 we did not modify this, however it will likely need to be fixed as well.
Attached is our patched file.