WIN32OLERuntimeError using 1.9.2
I found a problem using win32ole library in threaded script. Ruby version I used is 1.9.2p290. It is said that same happens on 1.9.3-p0. Following is the minimal example that exposes this problem and the problem happens at ie.document. Doing sleep for few seconds between ie.navigate and ie.document works.
t = Thread.new do
ie = WIN32OLE.new( "InternetExplorer.Application" )
ie.visible = true
rescue Exception => e
The output is:
OLE error code:80004005 in
HRESULT error code:0x80020009
A little similar to ruby bug #2618, but this time problem happens after accessing document after navigate.