Issue #2618 has been updated by nobu (Nobuyoshi Nakada). Description updated Status changed from Closed to Open % Done changed from 100 to 50 ---------------------------------------- Bug #2618: Win32OLE RuntimeError due CoInitialize not being called https://bugs.ruby-lang.org/issues/2618#change-35471 Author: luislavena (Luis Lavena) Status: Open Priority: Normal Assignee: suke (Masaki Suketa) Category: Target version: ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32] =begin A user reported to Ruby-Talk and RubyInstaller mailing list some issues using ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-mingw32] http://groups.google.com/group/rubyinstaller/brows... I could reproduce the issue across multiple versions of 1.9.1 and with close-up-to-date version of 1.9.2dev: http://groups.google.com/group/rubyinstaller/msg/d... Simple test script: http://pastie.org/786354 <pre><code> require 'win32ole' t = Thread.new do begin ie = WIN32OLE.new( "InternetExplorer.Application" ) ie.visible = true ie.navigate( "http://google.com" ) puts "OK" rescue Exception => e puts e.class puts e puts e.backtrace end end t.join </code></pre> Generates this: <pre> ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32] WIN32OLERuntimeError failed to create WIN32OLE object from `InternetExplorer.Application' HRESULT error code:0x800401f0 CoInitialize has not been called. t.rb:5:in `initialize' t.rb:5:in `new' t.rb:5:in `block in <main>' ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32] WIN32OLERuntimeError failed to create WIN32OLE object from `InternetExplorer.Application' HRESULT error code:0x800401f0 CoInitialize has not been called. t.rb:5:in `initialize' t.rb:5:in `new' t.rb:5:in `block in <main>' ruby 1.9.2dev (2010-01-02 trunk 26229) [i386-mingw32] WIN32OLERuntimeError failed to create WIN32OLE object from `InternetExplorer.Application' HRESULT error code:0x800401f0 CoInitialize has not been called. t.rb:5:in `initialize' t.rb:5:in `new' t.rb:5:in `block in <main>' </pre> Both mswin32 and mingw32 generates the same issue. =end
on 2013-01-18 03:24
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.